ShaderTechnique
Contents
[
Hide
]ShaderTechnique class
A shader technique represents a concrete rendering implementation.
Methods
constructor
Name | Description |
---|---|
constructor() | Initializes a new instance of the ShaderTechnique class. |
Result:
getDescription
Name | Description |
---|---|
getDescription() | Gets or sets the description of this technique |
Result:
setDescription
Name | Description |
---|---|
setDescription(value) | Gets or sets the description of this technique |
Result:
getShaderLanguage
Name | Description |
---|---|
getShaderLanguage() | Gets or sets the shader language used by this technique. |
Result:
setShaderLanguage
Name | Description |
---|---|
setShaderLanguage(value) | Gets or sets the shader language used by this technique. |
Result:
getShaderVersion
Name | Description |
---|---|
getShaderVersion() | Gets or sets the shader version used by this technique. |
Result:
setShaderVersion
Name | Description |
---|---|
setShaderVersion(value) | Gets or sets the shader version used by this technique. |
Result:
getShaderFile
Name | Description |
---|---|
getShaderFile() | Gets or sets the file name of the external shader file. |
Result:
setShaderFile
Name | Description |
---|---|
setShaderFile(value) | Gets or sets the file name of the external shader file. |
Result:
getShaderContent
Name | Description |
---|---|
getShaderContent() | Gets or sets the content of a embedded shader script. It could be HLSL/GLSL shader source file. |
Result:
setShaderContent
Name | Description |
---|---|
setShaderContent(value) | Gets or sets the content of a embedded shader script. It could be HLSL/GLSL shader source file. |
Result:
getShaderEntry
Name | Description |
---|---|
getShaderEntry() | Gets or sets the entry point of the shader, some shader like HLSL can have customized shader entries. |
Result:
setShaderEntry
Name | Description |
---|---|
setShaderEntry(value) | Gets or sets the entry point of the shader, some shader like HLSL can have customized shader entries. |
Result:
getRenderAPI
Name | Description |
---|---|
getRenderAPI() | Gets or sets the rendering API used by this technique |
Result:
setRenderAPI
Name | Description |
---|---|
setRenderAPI(value) | Gets or sets the rendering API used by this technique |
Result:
getRenderAPIVersion
Name | Description |
---|---|
getRenderAPIVersion() | Gets or sets the version of the rendering API. |
Result:
setRenderAPIVersion
Name | Description |
---|---|
setRenderAPIVersion(value) | Gets or sets the version of the rendering API. |
Result:
getShaderParameters
Name | Description |
---|---|
getShaderParameters() | 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. |
Result:
addBinding
Name | Description |
---|---|
addBinding(property, shaderParameter) | Binds the dynamic property to shader parameter |
Parameters:
Name | Type | Description |
---|---|---|
property | String | The name of the dynamic property. |
shaderParameter | String | The name of the shader parameter. |
Result: