pub struct SharedDecl {
pub name: String,
pub align: u32,
pub size_bytes: u32,
}Expand description
Shared memory declaration in a PTX kernel preamble.
Emitted as .shared .align {align} .b8 {name}[{size_bytes}]; after
register declarations.
Fields§
§name: StringName of the shared memory allocation (e.g., "sdata").
align: u32Alignment in bytes (4 for f32, 8 for f64).
size_bytes: u32Total allocation size in bytes.
Trait Implementations§
Source§fn clone(&self) -> SharedDecl
fn clone(&self) -> SharedDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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