Package com.aspose.threed
Class ShaderTechnique
- java.lang.Object
-
- com.aspose.threed.ShaderTechnique
-
public class ShaderTechnique extends java.lang.Object
A shader technique represents a concrete rendering implementation.
-
-
Constructor Summary
Constructors Constructor Description ShaderTechnique()
Initializes a new instance of theShaderTechnique
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBinding(java.lang.String property, java.lang.String shaderParameter)
Binds the dynamic property to shader parameterjava.lang.String
getDescription()
Gets the description of this techniqueRenderingAPI
getRenderAPI()
Gets the rendering API used by this techniquejava.lang.String
getRenderAPIVersion()
Gets the version of the rendering API.byte[]
getShaderContent()
Gets the content of a embedded shader script.java.lang.String
getShaderEntry()
Gets the entry point of the shader, some shader like HLSL can have customized shader entries.java.lang.String
getShaderFile()
Gets the file name of the external shader file.ShadingLanguage
getShaderLanguage()
Gets the shader language used by this technique.java.util.Map<java.lang.String,java.lang.String>
getShaderParameters()
Gets the shader parameter definition.java.lang.String
getShaderVersion()
Gets the shader version used by this technique.void
setDescription(java.lang.String value)
Sets the description of this techniquevoid
setRenderAPI(RenderingAPI value)
Sets the rendering API used by this techniquevoid
setRenderAPIVersion(java.lang.String value)
Sets the version of the rendering API.void
setShaderContent(byte[] value)
Sets the content of a embedded shader script.void
setShaderEntry(java.lang.String value)
Sets the entry point of the shader, some shader like HLSL can have customized shader entries.void
setShaderFile(java.lang.String value)
Sets the file name of the external shader file.void
setShaderLanguage(ShadingLanguage value)
Sets the shader language used by this technique.void
setShaderVersion(java.lang.String value)
Sets the shader version used by this technique.
-
-
-
Constructor Detail
-
ShaderTechnique
public ShaderTechnique()
Initializes a new instance of theShaderTechnique
class.
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Gets the description of this technique
-
setDescription
public void setDescription(java.lang.String value)
Sets the description of this technique- Parameters:
value
- New value
-
getShaderLanguage
public ShadingLanguage getShaderLanguage()
Gets the shader language used by this technique.
-
setShaderLanguage
public void setShaderLanguage(ShadingLanguage value)
Sets the shader language used by this technique.- Parameters:
value
- New value
-
getShaderVersion
public java.lang.String getShaderVersion()
Gets the shader version used by this technique.
-
setShaderVersion
public void setShaderVersion(java.lang.String value)
Sets the shader version used by this technique.- Parameters:
value
- New value
-
getShaderFile
public java.lang.String getShaderFile()
Gets the file name of the external shader file.
-
setShaderFile
public void setShaderFile(java.lang.String value)
Sets the file name of the external shader file.- Parameters:
value
- New value
-
getShaderContent
public byte[] getShaderContent()
Gets the content of a embedded shader script. It could be HLSL/GLSL shader source file.
-
setShaderContent
public void setShaderContent(byte[] value)
Sets the content of a embedded shader script. It could be HLSL/GLSL shader source file.- Parameters:
value
- New value
-
getShaderEntry
public java.lang.String getShaderEntry()
Gets the entry point of the shader, some shader like HLSL can have customized shader entries.
-
setShaderEntry
public void setShaderEntry(java.lang.String value)
Sets the entry point of the shader, some shader like HLSL can have customized shader entries.- Parameters:
value
- New value
-
getRenderAPI
public RenderingAPI getRenderAPI()
Gets the rendering API used by this technique
-
setRenderAPI
public void setRenderAPI(RenderingAPI value)
Sets the rendering API used by this technique- Parameters:
value
- New value
-
getRenderAPIVersion
public java.lang.String getRenderAPIVersion()
Gets the version of the rendering API.
-
setRenderAPIVersion
public void setRenderAPIVersion(java.lang.String value)
Sets the version of the rendering API.- Parameters:
value
- New value
-
getShaderParameters
public java.util.Map<java.lang.String,java.lang.String> 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.
-
addBinding
public void addBinding(java.lang.String property, java.lang.String shaderParameter)
Binds the dynamic property to shader parameter- Parameters:
property
- The name of the dynamic property.shaderParameter
- The name of the shader parameter.
-
-