Skip to content

GPUBindingCommandsMixin

GPUBindingCommandsMixin assumes the presence of GPUObjectBase and GPUCommandsMixin members on the same object. It must only be included by interfaces which also include those mixins. #### Inheritors - [`GPUComputePassEncoder`](../-g-p-u-compute-pass-encoder/index.md) - [`GPURenderPassEncoder`](../-g-p-u-render-pass-encoder/index.md) - [`GPURenderBundleEncoder`](../-g-p-u-render-bundle-encoder/index.md)

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.