Skip to main content

Module resource

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§

BufferDescriptor
A descriptor used to create a BufferId.
BufferId
An opaque handle to a GPU buffer resource.
BufferUsage
A set of flags describing the allowed usages of a BufferId.
CameraUniformData
The GPU-side representation of camera uniform data.
CpuShaderSource
A CPU-side representation of a decoded .wgsl shader source, the hot-reload counterpart of CpuTexture.
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.
ViewInfo
Contains camera and projection information needed to render a specific view. This data is typically uploaded to a uniform buffer for shader access.

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.