From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- .../GfxDevice/opengles20/ShaderGeneratorGLES20.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Runtime/GfxDevice/opengles20/ShaderGeneratorGLES20.h (limited to 'Runtime/GfxDevice/opengles20/ShaderGeneratorGLES20.h') diff --git a/Runtime/GfxDevice/opengles20/ShaderGeneratorGLES20.h b/Runtime/GfxDevice/opengles20/ShaderGeneratorGLES20.h new file mode 100644 index 0000000..26669a1 --- /dev/null +++ b/Runtime/GfxDevice/opengles20/ShaderGeneratorGLES20.h @@ -0,0 +1,24 @@ +#ifndef SHADERGENERATOR_GLES20_H +#define SHADERGENERATOR_GLES20_H + +#include + +class FixedFunctionStateGLES20; + +std::string BuildVertexShaderSourceGLES20 (const FixedFunctionStateGLES20& state); +std::string BuildFragmentShaderSourceGLES20 (const FixedFunctionStateGLES20& state); + +struct FullStateCompareGLES20 +{ + bool operator() (FixedFunctionStateGLES20 const& a, FixedFunctionStateGLES20 const& b) const; +}; +struct VertexStateCompareGLES20 +{ + bool operator() (FixedFunctionStateGLES20 const& a, FixedFunctionStateGLES20 const& b) const; +}; +struct FragmentStateCompareGLES20 +{ + bool operator() (FixedFunctionStateGLES20 const& a, FixedFunctionStateGLES20 const& b) const; +}; + +#endif /* SHADERGENERATOR_GLES20_H */ -- cgit v1.1-26-g67d0