2021-04-22 19:05:20 +00:00
|
|
|
|
2021-04-13 21:13:03 +00:00
|
|
|
|
|
|
|
/**************************************************************************************************
|
2021-04-22 19:05:20 +00:00
|
|
|
*** This file was autogenerated from GrDSLFPTest_SwitchStatement.fp; do not modify.
|
2021-04-13 21:13:03 +00:00
|
|
|
**************************************************************************************************/
|
2021-04-22 19:05:20 +00:00
|
|
|
#ifndef GrDSLFPTest_SwitchStatement_DEFINED
|
|
|
|
#define GrDSLFPTest_SwitchStatement_DEFINED
|
2021-04-13 21:13:03 +00:00
|
|
|
|
|
|
|
#include "include/core/SkM44.h"
|
|
|
|
#include "include/core/SkTypes.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "src/gpu/GrFragmentProcessor.h"
|
|
|
|
|
2021-04-22 19:05:20 +00:00
|
|
|
class GrDSLFPTest_SwitchStatement : public GrFragmentProcessor {
|
2021-04-13 21:13:03 +00:00
|
|
|
public:
|
2021-04-30 17:47:31 +00:00
|
|
|
static std::unique_ptr<GrFragmentProcessor> Make(int32_t ten) {
|
|
|
|
return std::unique_ptr<GrFragmentProcessor>(new GrDSLFPTest_SwitchStatement(ten));
|
2021-04-13 21:13:03 +00:00
|
|
|
}
|
2021-04-22 19:05:20 +00:00
|
|
|
GrDSLFPTest_SwitchStatement(const GrDSLFPTest_SwitchStatement& src);
|
2021-04-13 21:13:03 +00:00
|
|
|
std::unique_ptr<GrFragmentProcessor> clone() const override;
|
2021-04-22 19:05:20 +00:00
|
|
|
const char* name() const override { return "DSLFPTest_SwitchStatement"; }
|
2021-04-30 17:47:31 +00:00
|
|
|
int32_t ten;
|
2021-04-13 21:13:03 +00:00
|
|
|
private:
|
2021-04-30 17:47:31 +00:00
|
|
|
GrDSLFPTest_SwitchStatement(int32_t ten)
|
|
|
|
: INHERITED(kGrDSLFPTest_SwitchStatement_ClassID, kNone_OptimizationFlags)
|
|
|
|
, ten(ten) {
|
2021-04-13 21:13:03 +00:00
|
|
|
}
|
|
|
|
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
|