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/opengles30/ShaderGeneratorGLES30.h | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Runtime/GfxDevice/opengles30/ShaderGeneratorGLES30.h (limited to 'Runtime/GfxDevice/opengles30/ShaderGeneratorGLES30.h') diff --git a/Runtime/GfxDevice/opengles30/ShaderGeneratorGLES30.h b/Runtime/GfxDevice/opengles30/ShaderGeneratorGLES30.h new file mode 100644 index 0000000..57e0045 --- /dev/null +++ b/Runtime/GfxDevice/opengles30/ShaderGeneratorGLES30.h @@ -0,0 +1,24 @@ +#ifndef SHADERGENERATOR_GLES30_H +#define SHADERGENERATOR_GLES30_H + +#include + +class FixedFunctionStateGLES30; + +std::string BuildVertexShaderSourceGLES30 (const FixedFunctionStateGLES30& state); +std::string BuildFragmentShaderSourceGLES30 (const FixedFunctionStateGLES30& state); + +struct FullStateCompareGLES30 +{ + bool operator() (FixedFunctionStateGLES30 const& a, FixedFunctionStateGLES30 const& b) const; +}; +struct VertexStateCompareGLES30 +{ + bool operator() (FixedFunctionStateGLES30 const& a, FixedFunctionStateGLES30 const& b) const; +}; +struct FragmentStateCompareGLES30 +{ + bool operator() (FixedFunctionStateGLES30 const& a, FixedFunctionStateGLES30 const& b) const; +}; + +#endif /* SHADERGENERATOR_GLES30_H */ -- cgit v1.1-26-g67d0