Struct gfx_hal::Limits

source ·
pub struct Limits {
Show 22 fields pub max_texture_size: usize, pub max_texel_elements: usize, pub max_patch_size: PatchSize, pub max_viewports: usize, pub max_compute_group_count: WorkGroupCount, pub max_compute_group_size: [u32; 3], pub max_vertex_input_attributes: usize, pub max_vertex_input_bindings: usize, pub max_vertex_input_attribute_offset: usize, pub max_vertex_input_binding_stride: usize, pub max_vertex_output_components: usize, pub min_buffer_copy_offset_alignment: Offset, pub min_buffer_copy_pitch_alignment: Offset, pub min_texel_buffer_offset_alignment: Offset, pub min_uniform_buffer_offset_alignment: Offset, pub min_storage_buffer_offset_alignment: Offset, pub framebuffer_color_samples_count: NumSamples, pub framebuffer_depth_samples_count: NumSamples, pub framebuffer_stencil_samples_count: NumSamples, pub max_color_attachments: usize, pub non_coherent_atom_size: usize, pub max_sampler_anisotropy: f32,
}
Expand description

Resource limits of a particular graphics device.

Fields

max_texture_size: usize

Maximum supported texture size.

max_texel_elements: usize

Maximum number of elements for the BufferView to see.

max_patch_size: PatchSize

Maximum number of vertices for each patch.

max_viewports: usize

Maximum number of viewports.

max_compute_group_count: WorkGroupCount
max_compute_group_size: [u32; 3]
max_vertex_input_attributes: usize

Maximum number of vertex input attributes that can be specified for a graphics pipeline.

max_vertex_input_bindings: usize

Maximum number of vertex buffers that can be specified for providing vertex attributes to a graphics pipeline.

max_vertex_input_attribute_offset: usize

Maximum vertex input attribute offset that can be added to the vertex input binding stride.

max_vertex_input_binding_stride: usize

Maximum vertex input binding stride that can be specified in a vertex input binding.

max_vertex_output_components: usize

Maximum number of components of output variables which can be output by a vertex shader.

min_buffer_copy_offset_alignment: Offset

The alignment of the start of the buffer used as a GPU copy source, in bytes, non-zero.

min_buffer_copy_pitch_alignment: Offset

The alignment of the row pitch of the texture data stored in a buffer that is used in a GPU copy operation, in bytes, non-zero.

min_texel_buffer_offset_alignment: Offset

The alignment of the start of buffer used as a texel buffer, in bytes, non-zero.

min_uniform_buffer_offset_alignment: Offset

The alignment of the start of buffer used for uniform buffer updates, in bytes, non-zero.

min_storage_buffer_offset_alignment: Offset

The alignment of the start of buffer used as a storage buffer, in bytes, non-zero.

framebuffer_color_samples_count: NumSamples

Number of samples supported for color attachments of framebuffers (floating/fixed point).

framebuffer_depth_samples_count: NumSamples

Number of samples supported for depth attachments of framebuffers.

framebuffer_stencil_samples_count: NumSamples

Number of samples supported for stencil attachments of framebuffers.

max_color_attachments: usize

Maximum number of color attachments that can be used by a subpass in a render pass.

non_coherent_atom_size: usize

Size and alignment in bytes that bounds concurrent access to host-mapped device memory.

max_sampler_anisotropy: f32

Maximum degree of sampler anisotropy.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.