Interface IPipelineContext
Hierarchy
- IPipelineContext
Index
Properties
Methods
Properties
is AsyncSearch playground for isAsync
Gets a boolean indicating that this pipeline context is supporting asynchronous creating
is ReadySearch playground for isReady
Gets a boolean indicating that the context is ready to be used (like shaders / pipelines are compiled and ready for instance)
Methods
disposeSearch playground for dispose
-
Releases the resources associated with the pipeline.
Returns void
set ArraySearch playground for setArray
-
Sets an array on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
array: number[] | Float32Array
array to be set.
Returns void
-
set Array2Search playground for setArray2
-
Sets an array 2 on a uniform variable. (Array is specified as single array eg. [1,2,3,4] will result in [[1,2],[3,4]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: number[] | Float32Array
array to be set.
Returns void
-
set Array3Search playground for setArray3
-
Sets an array 3 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6] will result in [[1,2,3],[4,5,6]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: number[] | Float32Array
array to be set.
Returns void
-
set Array4Search playground for setArray4
-
Sets an array 4 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6,7,8] will result in [[1,2,3,4],[5,6,7,8]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: number[] | Float32Array
array to be set.
Returns void
-
set Color3Search playground for setColor3
-
Sets a Color3 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
color3: IColor3Like
Value to be set.
Returns void
-
set Color4Search playground for setColor4
-
Sets a Color4 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
color3: IColor3Like
Value to be set.
-
alpha: number
Alpha value to be set.
Returns void
-
set Direct Color4Search playground for setDirectColor4
-
Sets a Color4 on a uniform variable
Parameters
-
uniformName: string
defines the name of the variable
-
color4: IColor4Like
defines the value to be set
Returns void
-
set FloatSearch playground for setFloat
-
Sets a float on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
value: number
value to be set.
Returns void
-
set Float2Search playground for setFloat2
-
Sets a float2 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First float in float2.
-
y: number
Second float in float2.
Returns void
-
set Float3Search playground for setFloat3
-
Sets a float3 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First float in float3.
-
y: number
Second float in float3.
-
z: number
Third float in float3.
Returns void
-
set Float4Search playground for setFloat4
-
Sets a float4 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First float in float4.
-
y: number
Second float in float4.
-
z: number
Third float in float4.
-
w: number
Fourth float in float4.
Returns void
-
set IntSearch playground for setInt
-
Sets an integer value on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
value: number
Value to be set.
Returns void
-
set Int2Search playground for setInt2
-
Sets an int2 value on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First int in int2.
-
y: number
Second int in int2.
Returns void
-
set Int3Search playground for setInt3
-
Sets an int3 value on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First int in int3.
-
y: number
Second int in int3.
-
z: number
Third int in int3.
Returns void
-
set Int4Search playground for setInt4
-
Sets an int4 value on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
x: number
First int in int4.
-
y: number
Second int in int4.
-
z: number
Third int in int4.
-
w: number
Fourth int in int4.
Returns void
-
set Int ArraySearch playground for setIntArray
-
Sets an int array on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
array: Int32Array
array to be set.
Returns void
-
set Int Array2Search playground for setIntArray2
-
Sets an int array 2 on a uniform variable. (Array is specified as single array eg. [1,2,3,4] will result in [[1,2],[3,4]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: Int32Array
array to be set.
Returns void
-
set Int Array3Search playground for setIntArray3
-
Sets an int array 3 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6] will result in [[1,2,3],[4,5,6]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: Int32Array
array to be set.
Returns void
-
set Int Array4Search playground for setIntArray4
-
Sets an int array 4 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6,7,8] will result in [[1,2,3,4],[5,6,7,8]] in the shader)
Parameters
-
uniformName: string
Name of the variable.
-
array: Int32Array
array to be set.
Returns void
-
set MatricesSearch playground for setMatrices
-
Sets matrices on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
matrices: Float32Array
matrices to be set.
Returns void
-
set MatrixSearch playground for setMatrix
-
Sets matrix on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
matrix: IMatrixLike
matrix to be set.
Returns void
-
set Matrix2x2Search playground for setMatrix2x2
-
Sets a 2x2 matrix on a uniform variable. (Speicified as [1,2,3,4] will result in [1,2][3,4] matrix)
Parameters
-
uniformName: string
Name of the variable.
-
matrix: Float32Array
matrix to be set.
Returns void
-
set Matrix3x3Search playground for setMatrix3x3
-
Sets a 3x3 matrix on a uniform variable. (Speicified as [1,2,3,4,5,6,7,8,9] will result in [1,2,3][4,5,6][7,8,9] matrix)
Parameters
-
uniformName: string
Name of the variable.
-
matrix: Float32Array
matrix to be set.
Returns void
-
set Vector2Search playground for setVector2
-
Sets a Vector2 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
vector2: IVector2Like
vector2 to be set.
Returns void
-
set Vector3Search playground for setVector3
-
Sets a Vector3 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
vector3: IVector3Like
Value to be set.
Returns void
-
set Vector4Search playground for setVector4
-
Sets a Vector4 on a uniform variable.
Parameters
-
uniformName: string
Name of the variable.
-
vector4: IVector4Like
Value to be set.
Returns void
-
Class used to store and describe the pipeline context associated with an effect