skia2/tests/sksl/dslfp/GrDSLFPTest_IfStatement.h
John Stiles f33b061e3b Add support for uniforms and layout(key)s to DSLCPPCodeGenerator.
Change-Id: I77c386e3d72fb4a5986e5efb8bc9d409200534d1
Bug: skia:11854
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/398457
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-04-21 20:18:07 +00:00

39 lines
1.4 KiB
C++

/**************************************************************************************************
*** This file was autogenerated from GrDSLFPTest_IfStatement.fp; do not modify.
**************************************************************************************************/
#ifndef GrDSLFPTest_IfStatement_DEFINED
#define GrDSLFPTest_IfStatement_DEFINED
#include "include/core/SkM44.h"
#include "include/core/SkTypes.h"
#include "src/gpu/GrFragmentProcessor.h"
class GrDSLFPTest_IfStatement : public GrFragmentProcessor {
public:
static std::unique_ptr<GrFragmentProcessor> Make(float one) {
return std::unique_ptr<GrFragmentProcessor>(new GrDSLFPTest_IfStatement(one));
}
GrDSLFPTest_IfStatement(const GrDSLFPTest_IfStatement& src);
std::unique_ptr<GrFragmentProcessor> clone() const override;
const char* name() const override { return "DSLFPTest_IfStatement"; }
float one;
private:
GrDSLFPTest_IfStatement(float one)
: INHERITED(kGrDSLFPTest_IfStatement_ClassID, kNone_OptimizationFlags)
, one(one) {
}
std::unique_ptr<GrGLSLFragmentProcessor> onMakeProgramImpl() const override;
void onGetGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const override;
bool onIsEqual(const GrFragmentProcessor&) const override;
#if GR_TEST_UTILS
SkString onDumpInfo() const override;
#endif
GR_DECLARE_FRAGMENT_PROCESSOR_TEST
using INHERITED = GrFragmentProcessor;
};
#endif