BufferBinding¶
data class BufferBinding(
val buffer: GPUBuffer,
val offset: GPUSize64,
val size: GPUSize64? = null
) : GPUBufferBinding
Constructors¶
BufferBinding¶
constructor(
buffer: GPUBuffer,
offset: GPUSize64,
size: GPUSize64? = null
)
Properties¶
buffer¶
open override val buffer: GPUBuffer
The GPUBuffer to bind.
See [GPUBufferBinding.buffer in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpubufferbinding-buffer).
offset¶
open override val offset: GPUSize64
The offset, in bytes, from the beginning of buffer to the beginning of the range exposed to the shader by the buffer binding.
size¶
open override val size: GPUSize64?
The size, in bytes, of the buffer binding. If not provided, specifies the range starting at offset and ending at the end of buffer.