pub struct RootDescriptor(/* private fields */);
Expand description
Wrapper around D3D12_ROOT_DESCRIPTOR1 structure
Implementations§
Source§impl RootDescriptor
impl RootDescriptor
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_flags(&mut self, flags: RootDescriptorFlags) -> &mut Self
pub fn with_flags(self, flags: RootDescriptorFlags) -> Self
pub fn flags(&self) -> RootDescriptorFlags
Trait Implementations§
Source§impl Clone for RootDescriptor
impl Clone for RootDescriptor
Source§fn clone(&self) -> RootDescriptor
fn clone(&self) -> RootDescriptor
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 RootDescriptor
impl Debug for RootDescriptor
Source§impl Default for RootDescriptor
impl Default for RootDescriptor
Source§fn default() -> RootDescriptor
fn default() -> RootDescriptor
Returns the “default value” for a type. Read more
Source§impl Hash for RootDescriptor
impl Hash for RootDescriptor
Source§impl Ord for RootDescriptor
impl Ord for RootDescriptor
Source§fn cmp(&self, other: &RootDescriptor) -> Ordering
fn cmp(&self, other: &RootDescriptor) -> 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 RootDescriptor
impl PartialEq for RootDescriptor
Source§impl PartialOrd for RootDescriptor
impl PartialOrd for RootDescriptor
impl Copy for RootDescriptor
impl Eq for RootDescriptor
impl StructuralPartialEq for RootDescriptor
Auto Trait Implementations§
impl Freeze for RootDescriptor
impl RefUnwindSafe for RootDescriptor
impl Send for RootDescriptor
impl Sync for RootDescriptor
impl Unpin for RootDescriptor
impl UnwindSafe for RootDescriptor
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