pub enum Declared {
Sampler(TextureType),
Semantic {
usage: u8,
index: u8,
},
}Expand description
What a declaration token declares.
Variants§
Sampler(TextureType)
A sampler’s texture type.
Semantic
Any other register’s usage (D3DDECLUSAGE: 0 position, 1 blend weight, 2 blend indices, 3 normal, 4 point size,
5 texture coordinate, 6 tangent, 7 binormal, 8 tessellation factor, 9 transformed position, 10 colour, 11 fog,
12 depth, 13 sample; bits 0 to 3) and usage index (bits 16 to 19). A pixel 2.x program’s dcl t0 and dcl v0
store usage 0 and index 0, as does dcl vPos.
Trait Implementations§
impl Copy for Declared
impl Eq for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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