d2d.rendering.shader
- enum ShaderType: ubyte;
- All valid types of shaders for the
Shader
class.
- Vertex
- Vertex Shader
- TessControl
- Tessellation Control Shader
- TessEvaluation
- Tessellation Evaluation Shader
- Geometry
- Geometry Shader
- Fragment
- Fragment/Pixel Shader
- class Shader: d2d.core.iverifiable.IVerifiable;
- Class containing a single shader for combining in a ShaderProgram.
- bool load(ShaderType type, string content);
- Loads the shader content into memory.
- static Shader create(ShaderType type, string content);
- Creates a shader, loads the content and compiles it in one function.
- bool compile();
- Compiles the shader and throws an Exception if an error occured.
Will automatically be called when attaching the shader to a ShaderProgram instance.
- @property uint id();
- The OpenGL id of this shader.
- @property bool valid();
- Checks if this shader is valid.
Page generated by Ddoc.