GPUStorageTextureBindingLayout


public final class GPUStorageTextureBindingLayout


The required configuration for a storage texture binding in a bind group layout.

Summary

Public constructors

GPUStorageTextureBindingLayout(
    int access,
    int format,
    int viewDimension
)

Public methods

final int

The shader access mode (read-only, write-only, or read-write).

final int

The storage texture format.

final int
final void
setAccess(int access)

The shader access mode (read-only, write-only, or read-write).

final void
setFormat(int format)

The storage texture format.

final void
setViewDimension(int viewDimension)

Public constructors

GPUStorageTextureBindingLayout

Added in 1.0.0-alpha02
public GPUStorageTextureBindingLayout(
    int access,
    int format,
    int viewDimension
)

Public methods

getAccess

Added in 1.0.0-alpha02
public final int getAccess()

The shader access mode (read-only, write-only, or read-write).

getFormat

Added in 1.0.0-alpha02
public final int getFormat()

The storage texture format.

getViewDimension

Added in 1.0.0-alpha02
public final int getViewDimension()

setAccess

Added in 1.0.0-alpha02
public final void setAccess(int access)

The shader access mode (read-only, write-only, or read-write).

setFormat

Added in 1.0.0-alpha02
public final void setFormat(int format)

The storage texture format.

setViewDimension

Added in 1.0.0-alpha02
public final void setViewDimension(int viewDimension)