MCPcopy Create free account
hub / github.com/Tencent/tgfx / GetFinalShaderCode

Function GetFinalShaderCode

test/src/CornerPinEffect.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 )";
43
44static std::string GetFinalShaderCode(const char* codeSnippet, bool isDesktop) {
45 if (isDesktop) {
46 return std::string("#version 140\n\n") + codeSnippet;
47 } else {
48 return std::string("#version 300 es\n\n") + codeSnippet;
49 }
50}
51
52std::shared_ptr<CornerPinEffect> CornerPinEffect::Make(const Point& upperLeft,
53 const Point& upperRight,

Callers 1

onCreateProgramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected