This class defines the constants that represent the possible values for the ShaderParameter class's type property. Each constant represents one of the data types available in Flash Player for parameters in the Pixel Bender shader language.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyBOOL:ShaderParameterType = 0

Indicates that the shader parameter is defined as a bool value, equivalent to a single Boolean instance in ActionScript. Note that even though the parameter only expects a single value, the ShaderParameter.value property is an Array, so the single value must be the only element of an Array assigned to the value property, like this:

// assumes the shader has a parameter named "param"
// whose data type is bool
myShader.data.param.value = [true];

@:value(cast 1)@:impl@:enuminlineread onlyBOOL2:ShaderParameterType = 1

Indicates that the shader parameter is defined as a bool2 value, equivalent to an Array of two Boolean instances in ActionScript.

@:value(cast 2)@:impl@:enuminlineread onlyBOOL3:ShaderParameterType = 2

Indicates that the shader parameter is defined as a bool3 value, equivalent to an Array of three Boolean instances in ActionScript.

@:value(cast 3)@:impl@:enuminlineread onlyBOOL4:ShaderParameterType = 3

Indicates that the shader parameter is defined as a bool4 value, equivalent to an Array of four Boolean instances in ActionScript.

@:value(cast 4)@:impl@:enuminlineread onlyFLOAT:ShaderParameterType = 4

Indicates that the shader parameter is defined as a float value, equivalent to a single Number instance in ActionScript. Note that even though the parameter only expects a single value, the ShaderParameter.value property is an Array, so the single value must be the only element of an Array assigned to the value property, like this:

// assumes the shader has a parameter named "param"
// whose data type is float
myShader.data.param.value = [22.5];

@:value(cast 5)@:impl@:enuminlineread onlyFLOAT2:ShaderParameterType = 5

Indicates that the shader parameter is defined as a float2 value, equivalent to an Array of two Number instances in ActionScript.

@:value(cast 6)@:impl@:enuminlineread onlyFLOAT3:ShaderParameterType = 6

Indicates that the shader parameter is defined as a float3 value, equivalent to an Array of three Number instances in ActionScript.

@:value(cast 7)@:impl@:enuminlineread onlyFLOAT4:ShaderParameterType = 7

Indicates that the shader parameter is defined as a float4 value, equivalent to an Array of four Number instances in ActionScript.

@:value(cast 8)@:impl@:enuminlineread onlyINT:ShaderParameterType = 8

Indicates that the shader parameter is defined as an int value, equivalent to a single int or uint instance in ActionScript. Note that even though the parameter only expects a single value, the ShaderParameter.value property is an Array, so the single value must be the only element of an Array assigned to the value property, like this:

// assumes the shader has a parameter named "param"
// whose data type is int
myShader.data.param.value = [275];

@:value(cast 9)@:impl@:enuminlineread onlyINT2:ShaderParameterType = 9

Indicates that the shader parameter is defined as an int2 value, equivalent to an Array of two int or uint instances in ActionScript.

@:value(cast 10)@:impl@:enuminlineread onlyINT3:ShaderParameterType = 10

Indicates that the shader parameter is defined as an int3 value, equivalent to an Array of three int or uint instances in ActionScript.

@:value(cast 11)@:impl@:enuminlineread onlyINT4:ShaderParameterType = 11

Indicates that the shader parameter is defined as an int4 value, equivalent to an Array of four int or uint instances in ActionScript.

@:value(cast 12)@:impl@:enuminlineread onlyMATRIX2X2:ShaderParameterType = 12

Indicates that the shader parameter is defined as a float2x2 value, equivalent to a 2-by-2 matrix. This matrix is represented as an Array of four Number instances in ActionScript.

@:value(cast 13)@:impl@:enuminlineread onlyMATRIX2X3:ShaderParameterType = 13

Indicates that the shader parameter is defined as a float2x3 value, equivalent to a 2-by-3 matrix. This matrix is represented as an Array of six Float instances in Haxe.

@:value(cast 14)@:impl@:enuminlineread onlyMATRIX2X4:ShaderParameterType = 14

Indicates that the shader parameter is defined as a float2x4 value, equivalent to a 2-by-4 matrix. This matrix is represented as an Array of eight Float instances in Haxe.

@:value(cast 15)@:impl@:enuminlineread onlyMATRIX3X2:ShaderParameterType = 15

Indicates that the shader parameter is defined as a float3x2 value, equivalent to a 3-by-2 matrix. This matrix is represented as an Array of six Float instances in Haxe.

@:value(cast 16)@:impl@:enuminlineread onlyMATRIX3X3:ShaderParameterType = 16

Indicates that the shader parameter is defined as a float3x3 value, equivalent to a 3-by-3 matrix. This matrix is represented as an Array of nine Number instances in ActionScript.

@:value(cast 17)@:impl@:enuminlineread onlyMATRIX3X4:ShaderParameterType = 17

Indicates that the shader parameter is defined as a float3x4 value, equivalent to a 3-by-4 matrix. This matrix is represented as an Array of twelve Float instances in Haxe.

@:value(cast 18)@:impl@:enuminlineread onlyMATRIX4X2:ShaderParameterType = 18

Indicates that the shader parameter is defined as a float4x2 value, equivalent to a 4-by-2 matrix. This matrix is represented as an Array of eight Float instances in Haxe.

@:value(cast 19)@:impl@:enuminlineread onlyMATRIX4X3:ShaderParameterType = 19

Indicates that the shader parameter is defined as a float4x3 value, equivalent to a 4-by-3 matrix. This matrix is represented as an Array of twelve Float instances in Haxe.

@:value(cast 20)@:impl@:enuminlineread onlyMATRIX4X4:ShaderParameterType = 20

Indicates that the shader parameter is defined as a float4x4 value, equivalent to a 4-by-4 matrix. This matrix is represented as an Array of 16 Number instances in ActionScript.