Skip to main content

Module texture

Module texture 

Expand description

Defines data structures related to GPU texture and sampler resources.

Structs§

CpuTexture
A CPU-side representation of a decoded texture, ready to be uploaded to the GPU.
SamplerDescriptor
A descriptor used to create a SamplerId. A sampler defines how a shader will sample from a texture.
SamplerId
An opaque handle to a GPU sampler resource.
TextureDescriptor
A descriptor used to create a TextureId.
TextureId
An opaque handle to a GPU texture resource.
TextureUsage
A set of flags describing the allowed usages of a TextureId.
TextureViewDescriptor
A descriptor used to create a TextureViewId. A view describes a specific way to access a texture’s data.
TextureViewId
An opaque handle to a GPU texture view resource.

Enums§

AddressMode
Defines how texture coordinates are handled when sampling outside the [0, 1] range.
FilterMode
Defines the filtering mode for texture sampling.
ImageAspect
Defines which aspects of a texture are accessed by a view.
MipmapFilterMode
Defines the filtering mode between mipmap levels.
SamplerBorderColor
The border color to use when AddressMode::ClampToBorder is active.
TextureDimension
The dimensionality of a texture.
TextureViewDimension
The dimensionality of a texture view.