pub struct Capabilities {
pub flags: CapabilityFlags,
pub min_uniform_buffer_offset_alignment: u32,
pub max_storage_buffer_bytes: u64,
pub max_storage_buffers_per_shader_stage: u32,
pub max_texture_dim: u32,
pub max_texture_dim_3d: u32,
pub r32float: TextureFormatCapabilities,
pub rg32float: TextureFormatCapabilities,
pub rgba32float: TextureFormatCapabilities,
}Expand description
What the opened device can do beyond the baseline.
Fields§
§flags: CapabilityFlagsThe boolean capabilities.
min_uniform_buffer_offset_alignment: u32Required byte alignment for a uniform-buffer binding offset.
max_storage_buffer_bytes: u64Largest single storage buffer binding, bytes.
max_storage_buffers_per_shader_stage: u32Maximum storage-buffer bindings visible to one shader stage.
max_texture_dim: u32Largest 2-D texture dimension, texels.
max_texture_dim_3d: u32Largest 3-D texture dimension, texels.
r32float: TextureFormatCapabilitiesr32float sampling and storage-write support.
rg32float: TextureFormatCapabilitiesrg32float sampling and storage-write support.
rgba32float: TextureFormatCapabilitiesrgba32float sampling and storage-write support.
Implementations§
Source§impl Capabilities
impl Capabilities
Sourcepub fn hardware_ray_tracing(&self) -> bool
pub fn hardware_ray_tracing(&self) -> bool
Hardware acceleration-structure traversal is available.
This is a resource capability, not evidence that a renderer has wired a complete hardware quality path.
Sourcepub fn ray_query(&self) -> bool
pub fn ray_query(&self) -> bool
Hardware acceleration structures and WGSL ray queries are available.
Sourcepub fn mesh_shaders(&self) -> bool
pub fn mesh_shaders(&self) -> bool
Mesh shading is available.
Sourcepub fn timestamp_queries(&self) -> bool
pub fn timestamp_queries(&self) -> bool
GPU timestamp queries are available.
Sourcepub fn subgroup_ops(&self) -> bool
pub fn subgroup_ops(&self) -> bool
Subgroup operations are available.
Sourcepub fn depth_read_while_sampled(&self) -> bool
pub fn depth_read_while_sampled(&self) -> bool
One pass may depth-test against a texture it also samples.