skia2/tests/sksl/dslfp/GrDSLFPTest_Builtins.h
John Stiles 83b0c830c6 Add support for built-in functions to DSLCPPCodeGenerator.
Change-Id: Idf65ff46cd75d23f550c8e763cf3618ec7501b38
Bug: skia:11854
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/398877
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-04-22 21:56:22 +00:00

37 lines
1.3 KiB
C++

/**************************************************************************************************
*** This file was autogenerated from GrDSLFPTest_Builtins.fp; do not modify.
**************************************************************************************************/
#ifndef GrDSLFPTest_Builtins_DEFINED
#define GrDSLFPTest_Builtins_DEFINED
#include "include/core/SkM44.h"
#include "include/core/SkTypes.h"
#include "src/gpu/GrFragmentProcessor.h"
class GrDSLFPTest_Builtins : public GrFragmentProcessor {
public:
static std::unique_ptr<GrFragmentProcessor> Make() {
return std::unique_ptr<GrFragmentProcessor>(new GrDSLFPTest_Builtins());
}
GrDSLFPTest_Builtins(const GrDSLFPTest_Builtins& src);
std::unique_ptr<GrFragmentProcessor> clone() const override;
const char* name() const override { return "DSLFPTest_Builtins"; }
private:
GrDSLFPTest_Builtins()
: INHERITED(kGrDSLFPTest_Builtins_ClassID, kNone_OptimizationFlags) {
}
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