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?,
    externalTextureBindingEntry: GPUExternalTextureBindingEntry?
)

Public properties

Int

The binding index corresponding to a shader resource.

GPUBuffer?

The buffer to bind.

GPUExternalTextureBindingEntry?
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-alpha06
GPUBindGroupEntry(
    binding: Int,
    buffer: GPUBuffer? = null,
    offset: Long = 0,
    size: Long = Constants.WHOLE_SIZE,
    sampler: GPUSampler? = null,
    textureView: GPUTextureView? = null,
    externalTextureBindingEntry: GPUExternalTextureBindingEntry? = null
)

Public properties

binding

Added in 1.0.0-alpha06
var binding: Int

The binding index corresponding to a shader resource.

buffer

Added in 1.0.0-alpha06
var buffer: GPUBuffer?

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

externalTextureBindingEntry

Added in 1.0.0-alpha06
var externalTextureBindingEntry: GPUExternalTextureBindingEntry?

offset

Added in 1.0.0-alpha06
var offset: Long

The offset in bytes from the beginning of the buffer.

sampler

Added in 1.0.0-alpha06
var sampler: GPUSampler?

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

size

Added in 1.0.0-alpha06
var size: Long

The size in bytes of the buffer binding.

textureView

Added in 1.0.0-alpha06
var textureView: GPUTextureView?