xref: /aosp_15_r20/external/skia/src/gpu/ganesh/mtl/GrMtlVaryingHandler.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 
8 #ifndef GrMtlVaryingHandler_DEFINED
9 #define GrMtlVaryingHandler_DEFINED
10 
11 #include "src/gpu/ganesh/glsl/GrGLSLVarying.h"
12 
13 class GrMtlVaryingHandler : public GrGLSLVaryingHandler {
14 public:
GrMtlVaryingHandler(GrGLSLProgramBuilder * program)15     GrMtlVaryingHandler(GrGLSLProgramBuilder* program) : INHERITED(program) {}
16 
17     typedef GrGLSLVaryingHandler::VarArray VarArray;
18 
19 private:
20     void onFinalize() override;
21 
22     friend class GrMtlPipelineStateBuilder;
23 
24     using INHERITED = GrGLSLVaryingHandler;
25 };
26 
27 #endif
28