pub struct Resources {
pub constants: BTreeMap<ResourceId, Vec<[u32; 4]>>,
pub constant_elements: BTreeMap<(ResourceId, u32), Vec<[u32; 4]>>,
pub buffers: BTreeMap<ResourceId, Vec<u32>>,
pub elements: BTreeMap<(ResourceId, u32), Vec<u32>>,
pub scenes: BTreeMap<ResourceId, Scene>,
}Expand description
What a run reads besides its inputs: constant buffers (rows of four lanes) and buffers (32-bit words), by resource.
Fields§
§constants: BTreeMap<ResourceId, Vec<[u32; 4]>>Constant buffers by interface resource: rows of four 32-bit words.
constant_elements: BTreeMap<(ResourceId, u32), Vec<[u32; 4]>>Constant-buffer array descriptors, keyed by resource and zero-based descriptor element.
buffers: BTreeMap<ResourceId, Vec<u32>>Buffers by interface resource: 32-bit words.
elements: BTreeMap<(ResourceId, u32), Vec<u32>>The elements of arrays of buffers, by resource and element.
scenes: BTreeMap<ResourceId, Scene>The acceleration structures, by resource.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Resources
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnsafeUnpin for Resources
impl UnwindSafe for Resources
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