Abstract base class for IShaderParameter implementations.
abstract class
|
ShaderParameter
|
implements
|
IShaderParameter
|
Returns the number of array elements.
public
property
|
Count
{
get
}
|
||
type
|
int32
|
||
value
|
|
The number of elements. | |
implements
|
IShaderParameter.Count
|
The name of this shader parameter.
public
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The parameter name. | |
implements
|
IShaderParameter.Name
|
The type of this shader parameter.
public
property
|
Type
{
get
}
|
||
type
|
ShaderParameterType
|
||
value
|
The parameter type. | ||
implements
|
IShaderParameter.Type
|
Sets the value of this shader effect parameter.
public
abstract
method
|
SetMatrix2
(Mat2F value,
bool transpose = false,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
transpose
|
Use
transpose
of
value?
Defaults
to
false .
|
||
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetMatrix2
|
See also:
ShaderParameterType.Matrix2Sets the value of this shader effect parameter.
public
abstract
method
|
SetMatrix3
(Mat3F value,
bool transpose = false,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
transpose
|
Use
transpose
of
value?
Defaults
to
false .
|
||
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetMatrix3
|
See also:
ShaderParameterType.Matrix3Sets the value of this shader effect parameter.
public
abstract
method
|
SetMatrix4
(Mat4F value,
bool transpose = false,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
transpose
|
Use
transpose
of
value?
Defaults
to
false .
|
||
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetMatrix4
|
See also:
ShaderParameterType.Matrix4Sets the value of this shader effect parameter.
public
abstract
method
|
SetScalar
(float32 value,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetScalar
|
See also:
ShaderParameterType.FloatSets the texture of this shader effect parameter.
public
abstract
method
|
SetTexture
(ITexture2D texture,
int32 index = 0)
|
||
params
|
texture
|
The parameter texture. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetTexture
|
See also:
ShaderParameterType.TextureSets the texture of this shader effect parameter.
public
abstract
method
|
SetTexture
(ITextureCube texture,
int32 index = 0)
|
||
params
|
texture
|
The parameter texture. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetTexture
|
See also:
ShaderParameterType.TextureCubeSets
the
texture
of
this
shader
effect
parameter
to
null
.
public
abstract
method
|
SetTextureNull
(int32 index = 0)
|
||
params
|
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
implements
|
IShaderParameter.SetTextureNull
|
See also:
ShaderParameterType.TextureSets the value of this shader effect parameter.
public
abstract
method
|
SetVector2
(Vec2F value,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetVector2
|
See also:
ShaderParameterType.Vector2Sets the value of this shader effect parameter.
public
abstract
method
|
SetVector3
(Vec3F value,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetVector3
|
See also:
ShaderParameterType.Vector3Sets the value of this shader effect parameter.
public
abstract
method
|
SetVector4
(Vec4F value,
int32 index = 0)
|
||
params
|
value
|
The parameter value. | |
index
|
[0..Count-1]
|
Array
element
index.
Defaults
to
0 . |
|
implements
|
IShaderParameter.SetVector4
|
See also:
ShaderParameterType.Vector4Element count of this parameter.
protected
field
|
count
|
||
type
|
int32
|
Remarks:
This field must be initialized by subclasses in their constructor.
Element type of this parameter.
protected
field
|
type
|
||
type
|
ShaderParameterType
|
Remarks:
This field must be initialized by subclasses in their constructor.
Creates a new instance of ShaderParameter.
protected
constructor
|
ShaderParameter
(string name)
|
||
params
|
name
|
[not-empty]
|
The parameter name. |
protected
method
|
AssertType
(string source,
ShaderParameterType type)
|
||
params
|
source
|
||
type
|