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.
- Sampler
Descriptor - A descriptor used to create a
SamplerId. A sampler defines how a shader will sample from a texture. - Sampler
Id - An opaque handle to a GPU sampler resource.
- Texture
Descriptor - A descriptor used to create a
TextureId. - Texture
Id - An opaque handle to a GPU texture resource.
- Texture
Usage - A set of flags describing the allowed usages of a
TextureId. - Texture
View Descriptor - A descriptor used to create a
TextureViewId. A view describes a specific way to access a texture’s data. - Texture
View Id - An opaque handle to a GPU texture view resource.
Enums§
- Address
Mode - Defines how texture coordinates are handled when sampling outside the
[0, 1]range. - Filter
Mode - Defines the filtering mode for texture sampling.
- Image
Aspect - Defines which aspects of a texture are accessed by a view.
- Mipmap
Filter Mode - Defines the filtering mode between mipmap levels.
- Sampler
Border Color - The border color to use when
AddressMode::ClampToBorderis active. - Texture
Dimension - The dimensionality of a texture.
- Texture
View Dimension - The dimensionality of a texture view.