pub struct Limits {Show 27 fields
pub max_texture_2d: u32,
pub max_texture_3d: u32,
pub max_texture_layers: u32,
pub max_storage_binding: u32,
pub max_uniform_binding: u32,
pub max_push_constants: u32,
pub max_bind_groups: u32,
pub max_compute_workgroup_size: [u32; 3],
pub max_compute_invocations: u32,
pub max_compute_workgroups: [u32; 3],
pub max_compute_shared_memory: u32,
pub min_uniform_offset_alignment: u32,
pub min_storage_offset_alignment: u32,
pub max_color_targets: u32,
pub max_vertex_buffers: u32,
pub max_vertex_attributes: u32,
pub max_draw_indirect_count: u32,
pub max_anisotropy: f32,
pub timestamp_period_ns: f32,
pub subgroup_size: u32,
pub subgroup_min_size: u32,
pub subgroup_max_size: u32,
pub max_bindless_textures: u32,
pub max_bindless_samplers: u32,
pub max_bindless_buffers: u32,
pub max_bindless_storage_textures: u32,
pub device_memory: u64,
}Expand description
the device’s limits
Fields§
§max_texture_2d: u32§max_texture_3d: u32§max_texture_layers: u32§max_storage_binding: u32the largest range of a storage / uniform buffer binding (bytes)
max_uniform_binding: u32§max_push_constants: u32push-constant bytes of the device (the API allows PUSH_CONSTANTS_MAX)
max_bind_groups: u32§max_compute_workgroup_size: [u32; 3]§max_compute_invocations: u32§max_compute_workgroups: [u32; 3]§min_uniform_offset_alignment: u32§min_storage_offset_alignment: u32§max_color_targets: u32§max_vertex_buffers: u32§max_vertex_attributes: u32§max_draw_indirect_count: u32§max_anisotropy: f32§timestamp_period_ns: f32nanoseconds per timestamp tick
subgroup_size: u32threads per subgroup (0: unknown)
subgroup_min_size: u32the subgroup sizes shaders can get (without size control: subgroup_size twice)
subgroup_max_size: u32§max_bindless_textures: u32the most slots of a Bindless table (Voll; 0 on Basis)
max_bindless_samplers: u32§max_bindless_buffers: u32§max_bindless_storage_textures: u32§device_memory: u64bytes of the device-local memory heaps
Trait Implementations§
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more