pub struct ConstantTable {
pub creator: String,
pub target: String,
pub version: u32,
pub flags: u32,
pub constants: Vec<Constant>,
}Expand description
The constant table (CTAB comment) of a program: who compiled it, for which target, and the named register allocations.
Fields§
§creator: StringThe creator string the header’s offset at 4 points at (the compiler’s name and version).
target: StringThe target profile string (ps_3_0) the header’s offset at 24 points at.
version: u32The shader version token (u32 at offset 8 of the header): 0xffff0300 for ps_3_0, 0xfffe0300 for vs_3_0.
Reading refuses a table whose version is not the program’s.
flags: u32Compile flags (u32 at offset 20 of the header), as stored.
constants: Vec<Constant>The allocations in the order stored: at most 1024, none overlapping another in the same register set, no name twice in one register set (a uniform read as both an integer and a float has a range in each).
Trait Implementations§
Source§impl Clone for ConstantTable
impl Clone for ConstantTable
Source§impl Debug for ConstantTable
impl Debug for ConstantTable
impl Eq for ConstantTable
Source§impl PartialEq for ConstantTable
impl PartialEq for ConstantTable
impl StructuralPartialEq for ConstantTable
Auto Trait Implementations§
impl Forget for ConstantTable
impl Freeze for ConstantTable
impl RefUnwindSafe for ConstantTable
impl Send for ConstantTable
impl Sync for ConstantTable
impl Unpin for ConstantTable
impl UnsafeUnpin for ConstantTable
impl UnwindSafe for ConstantTable
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