pub struct Resource {
pub resource_type: u32,
pub space: u32,
pub lower: u32,
pub upper: u32,
pub kind: Option<u32>,
pub flags: Option<u32>,
}Expand description
A resource record.
Fields§
§resource_type: u321 sampler, 2 constant buffer, 3 typed SRV, 4 raw SRV, 5 structured SRV, 6 typed UAV, 7 raw UAV, 8 structured UAV, 9 structured UAV with a counter.
space: u32The register space.
lower: u32The first register.
upper: u32The last register (u32::MAX for an unbounded range).
kind: Option<u32>The resource kind (the metadata’s DxilResourceKind for an SRV or UAV, 13 for a constant buffer, 14 for a
sampler), in the 24-byte record only.
flags: Option<u32>The record’s flags, in the 24-byte record only.
Trait Implementations§
impl Copy for Resource
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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