pub struct MemoryLayout {
pub stack_size: u32,
pub uniform_offset: u32,
pub uniform_size: u32,
pub attribute_offset: u32,
pub attribute_size: u32,
pub varying_offset: u32,
pub varying_size: u32,
}Expand description
Memory layout for shader execution
Fields§
§stack_size: u32Stack size (for local variables)
uniform_offset: u32Uniform buffer offset
uniform_size: u32Uniform buffer size
attribute_offset: u32Attribute buffer offset
attribute_size: u32Attribute buffer size
varying_offset: u32Varying buffer offset
varying_size: u32Varying buffer size
Trait Implementations§
Source§impl Clone for MemoryLayout
impl Clone for MemoryLayout
Source§fn clone(&self) -> MemoryLayout
fn clone(&self) -> MemoryLayout
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 moreSource§impl Debug for MemoryLayout
impl Debug for MemoryLayout
Auto Trait Implementations§
impl Freeze for MemoryLayout
impl RefUnwindSafe for MemoryLayout
impl Send for MemoryLayout
impl Sync for MemoryLayout
impl Unpin for MemoryLayout
impl UnwindSafe for MemoryLayout
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