pub struct Info {
pub role: Role,
pub usage: Usage,
pub bind: Bind,
pub size: usize,
pub stride: usize,
}Expand description
An information block that is immutable and associated to each buffer.
Fields§
§role: RoleRole
usage: UsageUsage hint
bind: BindBind flags
size: usizeSize in bytes
stride: usizeStride of a single element, in bytes. Only used for structured buffers that you use via shader resource / unordered access views.
Trait Implementations§
impl Copy for Info
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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