1 | /* |
2 | * Copyright 2019 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 GrSPIRVVaryingHandler_DEFINED |
9 | #define GrSPIRVVaryingHandler_DEFINED |
10 | |
11 | #include "src/gpu/glsl/GrGLSLVarying.h" |
12 | |
13 | /* |
14 | * This class can be used for basic SPIR-V varying handling. Each added varying just takes the |
15 | * next available location slot. |
16 | */ |
17 | class GrSPIRVVaryingHandler : public GrGLSLVaryingHandler { |
18 | public: |
19 | GrSPIRVVaryingHandler(GrGLSLProgramBuilder* program) : INHERITED(program) {} |
20 | |
21 | typedef GrGLSLVaryingHandler::VarArray VarArray; |
22 | |
23 | private: |
24 | void onFinalize() override; |
25 | |
26 | typedef GrGLSLVaryingHandler INHERITED; |
27 | }; |
28 | |
29 | #endif |
30 | |