pub struct ResourceProvenance {
pub name: String,
pub d3d: Option<D3dBinding>,
pub counter_of: Option<ResourceId>,
pub layout: Option<BufferLayout>,
}Expand description
The source’s own name and address for a resource; one field per API that has a notion of it.
Fields§
§name: StringThe name the source gives it (Texture2D_8, a constant buffer’s name).
d3d: Option<D3dBinding>The D3D bind point; None when the source has no such address.
counter_of: Option<ResourceId>The resource this one is the hidden counter of: an unordered-access view’s 32-bit counter (D3D’s append and
consume buffers, IncrementCounter), a buffer of its own in WebGPU. It has no D3D binding of its own; the
renderer binds it with the view, starting from the view’s initial count.
layout: Option<BufferLayout>The members the source states for a buffer view: a D3D tbuffer’s constant-register layout or a structured
buffer’s single element in storage packing. For a structured buffer, size is its element stride, not the
bound element count. The kind says how it is read; this says what it holds, by name and byte offset.
Absent when the source does not retain the reflection needed to name its contents.
Trait Implementations§
Source§impl Clone for ResourceProvenance
impl Clone for ResourceProvenance
Source§fn clone(&self) -> ResourceProvenance
fn clone(&self) -> ResourceProvenance
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more