GPUBindGroupEntry


class GPUBindGroupEntry


Describes a single resource binding within a bind group.

Summary

Nested types

Builder for GPUBindGroupEntry.

Public constructors

GPUBindGroupEntry(
    binding: Int,
    buffer: GPUBuffer?,
    offset: Long,
    size: Long,
    sampler: GPUSampler?,
    textureView: GPUTextureView?
)

Public properties

Int

The binding index corresponding to a shader resource.

GPUBuffer?

The buffer to bind.

Long

The offset in bytes from the beginning of the buffer.

GPUSampler?

The sampler to bind.

Long

The size in bytes of the buffer binding.

GPUTextureView?

Public constructors

GPUBindGroupEntry

Added in 1.0.0-alpha04
GPUBindGroupEntry(
    binding: Int,
    buffer: GPUBuffer? = null,
    offset: Long = 0,
    size: Long = Constants.WHOLE_SIZE,
    sampler: GPUSampler? = null,
    textureView: GPUTextureView? = null
)

Public properties

binding

Added in 1.0.0-alpha04
var bindingInt

The binding index corresponding to a shader resource.

buffer

Added in 1.0.0-alpha04
var bufferGPUBuffer?

The buffer to bind. Must be {@code null} if sampler or textureView is set.

offset

Added in 1.0.0-alpha04
var offsetLong

The offset in bytes from the beginning of the buffer.

sampler

Added in 1.0.0-alpha04
var samplerGPUSampler?

The sampler to bind. Must be {@code null} if buffer or textureView is set.

size

Added in 1.0.0-alpha04
var sizeLong

The size in bytes of the buffer binding.

textureView

Added in 1.0.0-alpha04
var textureViewGPUTextureView?