blob: 2e2e7f1886da5bc77a6cc504a621af7d2c6289a2 [file] [log] [blame]
Greg Daniel690a4502020-04-21 09:19:51 -04001/*
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
Greg Danield59a91d2020-04-23 13:22:47 -04008#ifndef GrSPIRVVaryingHandler_DEFINED
9#define GrSPIRVVaryingHandler_DEFINED
Greg Daniel690a4502020-04-21 09:19:51 -040010
11#include "src/gpu/glsl/GrGLSLVarying.h"
12
13 /*
Greg Danield59a91d2020-04-23 13:22:47 -040014 * This class can be used for basic SPIR-V varying handling. Each added varying just takes the
Greg Daniel690a4502020-04-21 09:19:51 -040015 * next available location slot.
16 */
Greg Danield59a91d2020-04-23 13:22:47 -040017class GrSPIRVVaryingHandler : public GrGLSLVaryingHandler {
Greg Daniel690a4502020-04-21 09:19:51 -040018public:
Greg Danield59a91d2020-04-23 13:22:47 -040019 GrSPIRVVaryingHandler(GrGLSLProgramBuilder* program) : INHERITED(program) {}
Greg Daniel690a4502020-04-21 09:19:51 -040020
21 typedef GrGLSLVaryingHandler::VarArray VarArray;
22
23private:
24 void onFinalize() override;
25
26 typedef GrGLSLVaryingHandler INHERITED;
27};
28
29#endif