pub struct RdefVariable {
pub word: usize,
pub name: String,
pub offset: u32,
pub size: u32,
pub flags: u32,
pub ty: RdefType,
pub default: Option<Vec<u8>>,
pub textures: [u32; 2],
pub samplers: [u32; 2],
}Expand description
One variable of a buffer as stored: its byte range in the buffer, its type and its default value.
Fields§
§word: usizeWhere the record starts, in words of the part.
name: StringThe variable’s name.
offset: u32Its first byte in the buffer.
size: u32Its size in bytes.
flags: u32D3D_SHADER_VARIABLE_FLAGS: bit 2 (D3D_SVF_USED) is set where the program reads the variable.
ty: RdefTypeIts type.
default: Option<Vec<u8>>The stored default value’s size bytes, where the variable has one.
textures: [u32; 2]The first texture register and the number of them a class instance holds (Shader Model 5 records only;
[u32::MAX, 0] where it holds none, and for Shader Model 4 records).
samplers: [u32; 2]The first sampler register and the number of them a class instance holds, as textures.
Trait Implementations§
Source§impl Clone for RdefVariable
impl Clone for RdefVariable
Source§impl Debug for RdefVariable
impl Debug for RdefVariable
impl Eq for RdefVariable
Source§impl PartialEq for RdefVariable
impl PartialEq for RdefVariable
impl StructuralPartialEq for RdefVariable
Auto Trait Implementations§
impl Forget for RdefVariable
impl Freeze for RdefVariable
impl RefUnwindSafe for RdefVariable
impl Send for RdefVariable
impl Sync for RdefVariable
impl Unpin for RdefVariable
impl UnsafeUnpin for RdefVariable
impl UnwindSafe for RdefVariable
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