pub struct ClassInstance {
pub name: String,
pub ty: u16,
pub count: u16,
pub buffer: Option<u16>,
pub offset: Option<u16>,
pub texture: Option<u16>,
pub sampler: Option<u16>,
}Expand description
A class instance in a constant buffer, or an array of them (suns[3]).
Fields§
§name: StringThe instance’s name.
ty: u16The class type’s id.
count: u16The number of instances, more than 1 for an array.
buffer: Option<u16>The constant buffer its data is in; None for a class without data.
offset: Option<u16>The register of that buffer its data starts at; None for a class without data.
texture: Option<u16>The first texture register it holds; None where it holds none.
sampler: Option<u16>The first sampler register it holds; None where it holds none.
Trait Implementations§
Source§impl Clone for ClassInstance
impl Clone for ClassInstance
Source§impl Debug for ClassInstance
impl Debug for ClassInstance
impl Eq for ClassInstance
Source§impl PartialEq for ClassInstance
impl PartialEq for ClassInstance
impl StructuralPartialEq for ClassInstance
Auto Trait Implementations§
impl Forget for ClassInstance
impl Freeze for ClassInstance
impl RefUnwindSafe for ClassInstance
impl Send for ClassInstance
impl Sync for ClassInstance
impl Unpin for ClassInstance
impl UnsafeUnpin for ClassInstance
impl UnwindSafe for ClassInstance
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