FragmentShader class base
A Shader generated from a FragmentProgram.
Instances of this class can be obtained from the FragmentProgram.fragmentShader method. The float uniforms list is initialized to the size expected by the shader and is zero-filled. Uniforms of float type can then be set by calling setFloat. Sampler uniforms are set by calling setImageSampler.
A FragmentShader can be re-used, and this is an efficient way to avoid allocating and re-initializing the uniform buffer and samplers. However, if two FragmentShader objects with different float uniforms or samplers are required to exist simultaneously, they must be obtained from two different calls to FragmentProgram.fragmentShader.
Properties
- debugDisposed → bool
-
Whether dispose has been called.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Releases the native resources held by the FragmentShader.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFloat(
int index, double value) → void -
Sets the float uniform at
index
tovalue
. -
setImageSampler(
int index, Image image) → void -
Sets the sampler uniform at
index
toimage
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited