/* HELLO WORLD */ /************************************************************************************************** *** This file was autogenerated from GrDSLFPTest_HelloWorld.fp; do not modify. **************************************************************************************************/ /* TODO(skia:11854): DSLCPPCodeGenerator is currently a work in progress. */ #include "GrDSLFPTest_HelloWorld.h" #include "src/core/SkUtils.h" #include "src/gpu/GrTexture.h" #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" #include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h" #include "src/gpu/glsl/GrGLSLProgramBuilder.h" #include "src/sksl/SkSLCPP.h" #include "src/sksl/SkSLUtil.h" #include "src/sksl/dsl/priv/DSLFPs.h" #include "src/sksl/dsl/priv/DSLWriter.h" class GrGLSLDSLFPTest_HelloWorld : public GrGLSLFragmentProcessor { public: GrGLSLDSLFPTest_HelloWorld() {} void emitCode(EmitArgs& args) override { [[maybe_unused]] const GrDSLFPTest_HelloWorld& _outer = args.fFp.cast(); using namespace SkSL::dsl; StartFragmentProcessor(this, &args); Return(Half4(0.0f, 1.0f, 0.0f, 1.0f)); EndFragmentProcessor(); } private: void onSetData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& _proc) override { } }; std::unique_ptr GrDSLFPTest_HelloWorld::onMakeProgramImpl() const { return std::make_unique(); } void GrDSLFPTest_HelloWorld::onGetGLSLProcessorKey(const GrShaderCaps& caps, GrProcessorKeyBuilder* b) const { } bool GrDSLFPTest_HelloWorld::onIsEqual(const GrFragmentProcessor& other) const { const GrDSLFPTest_HelloWorld& that = other.cast(); (void) that; return true; } GrDSLFPTest_HelloWorld::GrDSLFPTest_HelloWorld(const GrDSLFPTest_HelloWorld& src) : INHERITED(kGrDSLFPTest_HelloWorld_ClassID, src.optimizationFlags()) { this->cloneAndRegisterAllChildProcessors(src); } std::unique_ptr GrDSLFPTest_HelloWorld::clone() const { return std::make_unique(*this); } #if GR_TEST_UTILS SkString GrDSLFPTest_HelloWorld::onDumpInfo() const { return SkString(); } #endif