WGSLUtils¶
Overview¶
Represents a compiled shader and associated data.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type GlobalIndexable¶
- globalIndex?: WGSLExpressionU32
expression: u32 (the global index of the thread) - overrideable so we can run multiple smaller loads in the same workgroup if ever desired
Type GrainSizable¶
- grainSize: number
the number of elements each thread should process
Type LocalIndexable¶
- localIndex?: WGSLExpressionU32
expression: u32 (the index of the thread within the workgroup) - overrideable so we can run multiple smaller loads in the same workgroup if ever desired
Type OptionalLengthExpressionable¶
- lengthExpression?: WGSLExpressionU32 | null
if provided, it will enable range checks (based on whatever input order of the data was given)
Type RakedSizable¶
WorkgroupSizable & GrainSizable
Type WorkgroupIndexable¶
- workgroupIndex?: WGSLExpressionU32
expression: u32 (the index of the workgroup) - overrideable so we can run multiple smaller loads in the same workgroup if ever desired
Type WorkgroupSizable¶
- workgroupSize: number
the number of threads running this command
Source Code¶
See the source for WGSLUtils.ts in the alpenglow repository.