Skip to main content

Limits

Struct Limits 

Source
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: u32

the largest range of a storage / uniform buffer binding (bytes)

§max_uniform_binding: u32§max_push_constants: u32

push-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]§max_compute_shared_memory: u32§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: f32

nanoseconds per timestamp tick

§subgroup_size: u32

threads per subgroup (0: unknown)

§subgroup_min_size: u32

the subgroup sizes shaders can get (without size control: subgroup_size twice)

§subgroup_max_size: u32§max_bindless_textures: u32

the 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: u64

bytes of the device-local memory heaps

Trait Implementations§

Source§

impl Clone for Limits

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Limits

Source§

impl Debug for Limits

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Limits

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.