Class ShaderTechnique
ShaderTechnique class
A shader technique represents a concrete rendering implementation.
public class ShaderTechnique
Constructors
| Name | Description |
|---|
| ShaderTechnique() | Initializes a new instance of the ShaderTechnique class. |
Properties
| Name | Description |
|---|
| Description { get; set; } | Gets or sets the description of this technique |
| RenderAPI { get; set; } | Gets or sets the rendering API used by this technique |
| RenderAPIVersion { get; set; } | Gets or sets the version of the rendering API. |
| ShaderContent { get; set; } | Gets or sets the content of a embedded shader script. It could be HLSL/GLSL shader source file. |
| ShaderEntry { get; set; } | Gets or sets the entry point of the shader, some shader like HLSL can have customized shader entries. |
| ShaderFile { get; set; } | Gets or sets the file name of the external shader file. |
| ShaderLanguage { get; set; } | Gets or sets the shader language used by this technique. |
| ShaderParameters { get; } | Gets the shader parameter definition. The key is the name of the dynamic property, and value is the shader parameter name that the property connected to. |
| ShaderVersion { get; set; } | Gets or sets the shader version used by this technique. |
Methods
| Name | Description |
|---|
| AddBinding(string, string) | Binds the dynamic property to shader parameter |
See Also