Module resource
Expand description
GPU data handles and descriptors.
Modules§
- buffer
- Defines data structures related to GPU buffer resources.
- shader_
source - CPU-side shader source asset.
- texture
- Defines data structures related to GPU texture and sampler resources.
- view
- View and camera information.
Structs§
- Buffer
Descriptor - A descriptor used to create a
BufferId. - Buffer
Id - An opaque handle to a GPU buffer resource.
- Buffer
Usage - A set of flags describing the allowed usages of a
BufferId. - Camera
Uniform Data - The GPU-side representation of camera uniform data.
- CpuShader
Source - A CPU-side representation of a decoded
.wgslshader source, the hot-reload counterpart ofCpuTexture. - 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.
- View
Info - Contains camera and projection information needed to render a specific view. This data is typically uploaded to a uniform buffer for shader access.
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.