pub struct ProgramGraphShape {
pub node_count: u32,
pub edge_count: u32,
}Expand description
Statically-sized CSR dimensions baked into a primitive’s
BufferDecl counts so the backend can allocate + layout-validate
up front.
Fields§
§node_count: u32Total node count.
edge_count: u32Total edge count.
Implementations§
Source§impl ProgramGraphShape
impl ProgramGraphShape
Sourcepub fn read_only_buffers(&self) -> Vec<BufferDecl>
pub fn read_only_buffers(&self) -> Vec<BufferDecl>
Emit the five canonical BufferDecl entries for a primitive
that consumes a read-only ProgramGraph. Primitives add their
own RW output buffers starting at BINDING_PRIMITIVE_START.
Sourcepub fn try_read_only_buffers(&self) -> Result<Vec<BufferDecl>, String>
pub fn try_read_only_buffers(&self) -> Result<Vec<BufferDecl>, String>
Emit the canonical read-only ProgramGraph bindings with checked offset-buffer sizing.
Trait Implementations§
Source§impl Clone for ProgramGraphShape
impl Clone for ProgramGraphShape
Source§fn clone(&self) -> ProgramGraphShape
fn clone(&self) -> ProgramGraphShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgramGraphShape
Source§impl Debug for ProgramGraphShape
impl Debug for ProgramGraphShape
impl Eq for ProgramGraphShape
Source§impl PartialEq for ProgramGraphShape
impl PartialEq for ProgramGraphShape
impl StructuralPartialEq for ProgramGraphShape
Auto Trait Implementations§
impl Freeze for ProgramGraphShape
impl RefUnwindSafe for ProgramGraphShape
impl Send for ProgramGraphShape
impl Sync for ProgramGraphShape
impl Unpin for ProgramGraphShape
impl UnsafeUnpin for ProgramGraphShape
impl UnwindSafe for ProgramGraphShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.