ShaderTechnique

ShaderTechnique class

A shader technique represents a concrete rendering implementation.

Methods

constructor

NameDescription
constructor()Initializes a new instance of the ShaderTechnique class.

Result:


getDescription

NameDescription
getDescription()Gets or sets the description of this technique

Result:


setDescription

NameDescription
setDescription(value)Gets or sets the description of this technique

Result:


getShaderLanguage

NameDescription
getShaderLanguage()Gets or sets the shader language used by this technique.

Result:


setShaderLanguage

NameDescription
setShaderLanguage(value)Gets or sets the shader language used by this technique.

Result:


getShaderVersion

NameDescription
getShaderVersion()Gets or sets the shader version used by this technique.

Result:


setShaderVersion

NameDescription
setShaderVersion(value)Gets or sets the shader version used by this technique.

Result:


getShaderFile

NameDescription
getShaderFile()Gets or sets the file name of the external shader file.

Result:


setShaderFile

NameDescription
setShaderFile(value)Gets or sets the file name of the external shader file.

Result:


getShaderContent

NameDescription
getShaderContent()Gets or sets the content of a embedded shader script. It could be HLSL/GLSL shader source file.

Result:


setShaderContent

NameDescription
setShaderContent(value)Gets or sets the content of a embedded shader script. It could be HLSL/GLSL shader source file.

Result:


getShaderEntry

NameDescription
getShaderEntry()Gets or sets the entry point of the shader, some shader like HLSL can have customized shader entries.

Result:


setShaderEntry

NameDescription
setShaderEntry(value)Gets or sets the entry point of the shader, some shader like HLSL can have customized shader entries.

Result:


getRenderAPI

NameDescription
getRenderAPI()Gets or sets the rendering API used by this technique

Result:


setRenderAPI

NameDescription
setRenderAPI(value)Gets or sets the rendering API used by this technique

Result:


getRenderAPIVersion

NameDescription
getRenderAPIVersion()Gets or sets the version of the rendering API.

Result:


setRenderAPIVersion

NameDescription
setRenderAPIVersion(value)Gets or sets the version of the rendering API.

Result:


getShaderParameters

NameDescription
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

NameDescription
addBinding(property, shaderParameter)Binds the dynamic property to shader parameter

Parameters:

NameTypeDescription
propertyStringThe name of the dynamic property.
shaderParameterStringThe name of the shader parameter.

Result: