GPUBindingCommandsMixin¶
interface GPUBindingCommandsMixin
Functions¶
setBindGroup¶
abstract fun setBindGroup(
index: GPUIndex32,
bindGroup: GPUBindGroup?,
dynamicOffsetsData: List<UInt> = emptyList()
)
Sets the current GPUBindGroup for the given index.
See [GPUBindingCommandsMixin.setBindGroup(index, bindGroup, dynamicOffsetsData) in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpubindingcommandsmixin-setbindgroup).
setImmediates¶
abstract fun setImmediates(
rangeOffset: GPUSize32,
data: ArrayBuffer,
dataOffset: GPUSize64,
dataSize: GPUSize64? = null
)
Sets immediate data for subsequent render or compute commands.
**Parameters**
- rangeOffset: Offset in bytes into the immediate data range to begin writing at.
- data: Data to write into the immediate data range.
- dataOffset: Offset into data to begin writing from. Given in elements if data is a TypedArray and bytes otherwise.
- dataSize: Size of content to write from data. Given in elements if data is a TypedArray and bytes otherwise.