Class NativePipelineContext
Hierarchy
- NativePipelineContext
Implements
Index
Constructors
Properties
Accessors
Methods
- _fill
Effect Information - _get
Fragment Shader Code - _get
Vertex Shader Code - _handles
Spector Rebuild Callback - dispose
- set
Array - set
Array2 - set
Array3 - set
Array4 - set
Bool - set
Color3 - set
Color4 - set
Direct Color4 - set
Float - set
Float2 - set
Float3 - set
Float4 - set
Float Array - set
Float Array2 - set
Float Array3 - set
Float Array4 - set
Int - set
Int2 - set
Int3 - set
Int4 - set
Int Array - set
Int Array2 - set
Int Array3 - set
Int Array4 - set
Matrices - set
Matrix - set
Matrix2x2 - set
Matrix3x3 - set
Quaternion - setUInt
- setUInt2
- setUInt3
- setUInt4
- setUInt
Array - setUInt
Array2 - setUInt
Array3 - setUInt
Array4 - set
Vector2 - set
Vector3 - set
Vector4
Constructors
constructor
Parameters
engine: NativeEngine
Returns NativePipelineContext
Properties
Optional compilation ErrorSearch playground for compilationError
is CompiledSearch playground for isCompiled
is Parallel CompiledSearch playground for isParallelCompiled
native ProgramSearch playground for nativeProgram
Optional on CompiledSearch playground for onCompiled
Type declaration
Returns void
Accessors
is Async
Returns boolean
is Ready
Gets a boolean indicating that the context is ready to be used (like shaders / pipelines are compiled and ready for instance)
Returns boolean
Methods
_fill Effect InformationSearch playground for _fillEffectInformation
_get Fragment Shader CodeSearch playground for _getFragmentShaderCode
Returns null | string
_get Vertex Shader CodeSearch playground for _getVertexShaderCode
Returns null | string
_handles Spector Rebuild CallbackSearch playground for _handlesSpectorRebuildCallback
Parameters
onCompiled: ((compiledObject: any) => void)
Parameters
compiledObject: any
Returns void
Returns void
disposeSearch playground for dispose
Release all associated resources.
Returns void
set ArraySearch playground for setArray
Sets an array on a uniform variable.
Parameters
uniformName: string
Name of the variable.
array: number[]
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[]
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[]
array to be set.
Returns void
this effect.
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[]
array to be set.
Returns void
set BoolSearch playground for setBool
Sets a boolean on a uniform variable.
Parameters
uniformName: string
Name of the variable.
bool: boolean
value 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
this effect.
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
this effect.
set Float ArraySearch playground for setFloatArray
Sets an float array on a uniform variable.
Parameters
uniformName: string
Name of the variable.
array: Float32Array
array to be set.
Returns void
set Float Array2Search playground for setFloatArray2
Sets an float 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: Float32Array
array to be set.
Returns void
set Float Array3Search playground for setFloatArray3
Sets an float 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: Float32Array
array to be set.
Returns void
set Float Array4Search playground for setFloatArray4
Sets an float 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: Float32Array
array to be set.
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 a int2 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 a int3 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 a int4 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. (Specified 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. (Specified 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 QuaternionSearch playground for setQuaternion
Sets a Quaternion on a uniform variable.
Parameters
uniformName: string
Name of the variable.
quaternion: IQuaternionLike
Value to be set.
Returns void
setUIntSearch playground for setUInt
Sets an unsigned integer value on a uniform variable.
Parameters
uniformName: string
Name of the variable.
value: number
Value to be set.
Returns void
setUInt2Search playground for setUInt2
Sets a unsigned int2 on a uniform variable.
Parameters
uniformName: string
Name of the variable.
x: number
First unsigned int in uint2.
y: number
Second unsigned int in uint2.
Returns void
setUInt3Search playground for setUInt3
Sets a unsigned int3 on a uniform variable.
Parameters
uniformName: string
Name of the variable.
x: number
First unsigned int in uint3.
y: number
Second unsigned int in uint3.
z: number
Third unsigned int in uint3.
Returns void
setUInt4Search playground for setUInt4
Sets a unsigned int4 on a uniform variable.
Parameters
uniformName: string
Name of the variable.
x: number
First unsigned int in uint4.
y: number
Second unsigned int in uint4.
z: number
Third unsigned int in uint4.
w: number
Fourth unsigned int in uint4.
Returns void
setUInt ArraySearch playground for setUIntArray
Sets an unsigned int array on a uniform variable.
Parameters
uniformName: string
Name of the variable.
array: Uint32Array
array to be set.
Returns void
setUInt Array2Search playground for setUIntArray2
Sets an unsigned 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: Uint32Array
array to be set.
Returns void
setUInt Array3Search playground for setUIntArray3
Sets an unsigned 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: Uint32Array
array to be set.
Returns void
setUInt Array4Search playground for setUIntArray4
Sets an unsigned 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: Uint32Array
array 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
Gets a boolean indicating that this pipeline context is supporting asynchronous creating