pub struct RootConstants(/* private fields */);
Expand description
Wrapper around D3D12_ROOT_CONSTANTS structure
Implementations§
Source§impl RootConstants
impl RootConstants
pub fn set_shader_register(&mut self, shader_register: u32) -> &mut Self
pub fn with_shader_register(self, shader_register: u32) -> Self
pub fn shader_register(&self) -> u32
pub fn set_register_space(&mut self, register_space: u32) -> &mut Self
pub fn with_register_space(self, register_space: u32) -> Self
pub fn register_space(&self) -> u32
pub fn set_num_32_bit_values(&mut self, num_32_bit_values: u32) -> &mut Self
pub fn with_num_32_bit_values(self, num_32_bit_values: u32) -> Self
pub fn num_32_bit_values(&self) -> u32
Trait Implementations§
Source§impl Clone for RootConstants
impl Clone for RootConstants
Source§fn clone(&self) -> RootConstants
fn clone(&self) -> RootConstants
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RootConstants
impl Debug for RootConstants
Source§impl Default for RootConstants
impl Default for RootConstants
Source§fn default() -> RootConstants
fn default() -> RootConstants
Returns the “default value” for a type. Read more
Source§impl Hash for RootConstants
impl Hash for RootConstants
Source§impl Ord for RootConstants
impl Ord for RootConstants
Source§fn cmp(&self, other: &RootConstants) -> Ordering
fn cmp(&self, other: &RootConstants) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RootConstants
impl PartialEq for RootConstants
Source§impl PartialOrd for RootConstants
impl PartialOrd for RootConstants
impl Eq for RootConstants
impl StructuralPartialEq for RootConstants
Auto Trait Implementations§
impl Freeze for RootConstants
impl RefUnwindSafe for RootConstants
impl Send for RootConstants
impl Sync for RootConstants
impl Unpin for RootConstants
impl UnwindSafe for RootConstants
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