Struct vulkano::descriptor_set::DescriptorBufferInfo
source · pub struct DescriptorBufferInfo {
pub buffer: Subbuffer<[u8]>,
pub range: Range<DeviceSize>,
}
Expand description
Parameters to write a buffer reference to a descriptor.
Fields§
§buffer: Subbuffer<[u8]>
The buffer to write to the descriptor.
range: Range<DeviceSize>
The slice of bytes in buffer
that will be made available to the shader.
range
must not be outside the range buffer
.
For dynamic buffer bindings, range
specifies the slice that is to be bound if the
dynamic offset were zero. When binding the descriptor set, the effective value of range
shifts forward by the offset that was provided. For example, if range
is specified as
0..8
when writing the descriptor set, and then when binding the descriptor set the
offset 16
is used, then the range of buffer
that will actually be bound is 16..24
.
Trait Implementations§
source§impl Clone for DescriptorBufferInfo
impl Clone for DescriptorBufferInfo
source§fn clone(&self) -> DescriptorBufferInfo
fn clone(&self) -> DescriptorBufferInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DescriptorBufferInfo
impl Send for DescriptorBufferInfo
impl Sync for DescriptorBufferInfo
impl Unpin for DescriptorBufferInfo
impl !UnwindSafe for DescriptorBufferInfo
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