pub struct Program<'a> {
pub profile: u32,
pub revision: u32,
pub stage: Stage,
pub parameters: Vec<Parameter<'a>>,
pub microcode: &'a [u8],
pub bytes: &'a [u8],
}Expand description
A container as read.
Fields§
§profile: u32The profile: 7003 vertex, 7004 fragment.
revision: u32The binary revision (6).
stage: StageThe stage-specific header.
parameters: Vec<Parameter<'a>>The parameter records, in order.
microcode: &'a [u8]Original byte order and inline constants retained verbatim.
bytes: &'a [u8]Exactly the advertised container size, excluding any caller’s padding.
Trait Implementations§
impl<'a> Eq for Program<'a>
impl<'a> StructuralPartialEq for Program<'a>
Auto Trait Implementations§
impl<'a> Forget for Program<'a>
impl<'a> Freeze for Program<'a>
impl<'a> RefUnwindSafe for Program<'a>
impl<'a> Send for Program<'a>
impl<'a> Sync for Program<'a>
impl<'a> Unpin for Program<'a>
impl<'a> UnsafeUnpin for Program<'a>
impl<'a> UnwindSafe for Program<'a>
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