pub struct ResourceExtras {
pub class: u8,
pub id: u32,
pub sample_count: Option<u32>,
pub globally_coherent: bool,
pub rasterizer_ordered: bool,
pub sampler_feedback: Option<u32>,
pub atomic64: bool,
pub tags: Vec<(i64, i64)>,
}Expand description
The optional fields of a resource record that Range leaves out, keyed by the record’s class and id.
Fields§
§class: u8The class (0 SRV, 1 UAV, 2 constant buffer, 3 sampler), as in Range::class.
id: u32The range id, as in Range::id.
sample_count: Option<u32>A shader resource view’s sample count (operand 7): 0 for a single-sampled view, 4 for a Texture2DMS<_, 4>.
globally_coherent: boolAn unordered-access view declared globallycoherent (operand 7).
rasterizer_ordered: boolAn unordered-access view that is rasterizer ordered (operand 9).
sampler_feedback: Option<u32>Tag 2 of the record’s tag list: the kind of the sampler-feedback texture, where it states one.
atomic64: boolTag 3 of the record’s tag list: the view is the target of a 64-bit atomic operation.
Every tag of the record’s tag list with its value, as stored (0 element type, 1 stride, 2 sampler feedback kind, 3 64-bit atomics).
Trait Implementations§
Source§impl Clone for ResourceExtras
impl Clone for ResourceExtras
Source§impl Debug for ResourceExtras
impl Debug for ResourceExtras
Source§impl Default for ResourceExtras
impl Default for ResourceExtras
impl Eq for ResourceExtras
Source§impl PartialEq for ResourceExtras
impl PartialEq for ResourceExtras
impl StructuralPartialEq for ResourceExtras
Auto Trait Implementations§
impl Forget for ResourceExtras
impl Freeze for ResourceExtras
impl RefUnwindSafe for ResourceExtras
impl Send for ResourceExtras
impl Sync for ResourceExtras
impl Unpin for ResourceExtras
impl UnsafeUnpin for ResourceExtras
impl UnwindSafe for ResourceExtras
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