Struct wgpu_hal::Alignments
source · pub struct Alignments {
pub buffer_copy_offset: BufferSize,
pub buffer_copy_pitch: BufferSize,
pub uniform_bounds_check_alignment: BufferSize,
pub raw_tlas_instance_size: usize,
pub ray_tracing_scratch_buffer_alignment: u32,
}
Fields§
§buffer_copy_offset: BufferSize
The alignment of the start of the buffer used as a GPU copy source.
buffer_copy_pitch: BufferSize
The alignment of the row pitch of the texture data stored in a buffer that is used in a GPU copy operation.
uniform_bounds_check_alignment: BufferSize
The finest alignment of bound range checking for uniform buffers.
When wgpu_hal
restricts shader references to the accessible
region of a Uniform
buffer, the size of the accessible region
is the bind group binding’s stated size, rounded up to the next
multiple of this value.
We don’t need an analogous field for storage buffer bindings, because
all our backends promise to enforce the size at least to a four-byte
alignment, and wgpu_hal
requires bound range lengths to be a multiple
of four anyway.
raw_tlas_instance_size: usize
The size of the raw TLAS instance
ray_tracing_scratch_buffer_alignment: u32
What the scratch buffer for building an acceleration structure must be aligned to
Trait Implementations§
source§impl Clone for Alignments
impl Clone for Alignments
source§fn clone(&self) -> Alignments
fn clone(&self) -> Alignments
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more