Create a new Uniform group
Name | Type | Attributes | Description |
---|---|---|---|
uniformStructures |
UNIFORMS |
The structures of the uniform group |
|
options |
UniformGroupOptions |
<optional> |
The optional parameters of this uniform group |
Implements
Members
defaultOptions UniformGroupOptions static
The default options used by the uniform group.
Properties:
Name | Type | Default | Description |
---|---|---|---|
isStatic |
boolean |
false
|
if true, then you are responsible for when the data is uploaded to the GPU by calling |
ubo |
boolean |
false
|
if true the UniformGroup is handled as an Uniform buffer object. |
the resource id used internally by the renderer to build bind group keys
a resource type, used to identify how to handle it when its in a bind group / shader resource
- Default Value:
- "uniformGroup"
used internally to know if a uniform group was used in the last render pass
- Default Value:
- 0
buffer Buffer
an underlying buffer that will be uploaded to the GPU when using this UniformGroup
if true, then you are responsible for when the data is uploaded to the GPU. otherwise, the data is reuploaded each frame.
used ito identify if this is a uniform group
- Default Value:
- true
true if it should be used as a uniform buffer object
a unique id for this uniform group used through the renderer
the uniforms as an easily accessible map of properties
the structures of the uniform group
Methods
Call this if you want the uniform groups data to be uploaded to the GPU only useful if isStatic
is true.