Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader_private.hh
| Show All 30 Lines | |||||
| /** | /** | ||||
| * Implementation of shader compilation and uniforms handling. | * Implementation of shader compilation and uniforms handling. | ||||
| * Base class which is then specialized for each implementation (GL, VK, ...). | * Base class which is then specialized for each implementation (GL, VK, ...). | ||||
| **/ | **/ | ||||
| class Shader { | class Shader { | ||||
| public: | public: | ||||
| /** Uniform & attribute locations for shader. */ | /** Uniform & attribute locations for shader. */ | ||||
| ShaderInterface *interface; | ShaderInterface *interface = nullptr; | ||||
| protected: | protected: | ||||
| /** For debugging purpose. */ | /** For debugging purpose. */ | ||||
| char name[64]; | char name[64]; | ||||
| public: | public: | ||||
| Shader(const char *name); | Shader(const char *name); | ||||
| virtual ~Shader(); | virtual ~Shader(); | ||||
| Show All 28 Lines | |||||