From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/GfxDevice/opengl/ArbGpuProgamGL.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Runtime/GfxDevice/opengl/ArbGpuProgamGL.h (limited to 'Runtime/GfxDevice/opengl/ArbGpuProgamGL.h') diff --git a/Runtime/GfxDevice/opengl/ArbGpuProgamGL.h b/Runtime/GfxDevice/opengl/ArbGpuProgamGL.h new file mode 100644 index 0000000..404c3e7 --- /dev/null +++ b/Runtime/GfxDevice/opengl/ArbGpuProgamGL.h @@ -0,0 +1,19 @@ +#pragma once + +#include "Runtime/GfxDevice/GpuProgram.h" + +class ArbGpuProgram : public GpuProgramGL { +public: + ArbGpuProgram( const std::string& source, ShaderType type, ShaderImplType implType ); + virtual ~ArbGpuProgram(); + + virtual void ApplyGpuProgram (const GpuProgramParameters& params, const UInt8* buffer); + + GLShaderID GetGLProgram(FogMode fog); + +private: + bool Create( const std::string& source, ShaderType type ); + +private: + bool m_FogFailed[kFogModeCount]; +}; -- cgit v1.1-26-g67d0