pub struct DescriptorRange(/* private fields */);
Expand description
Wrapper around D3D12_DESCRIPTOR_RANGE1 structure
Implementations§
Source§impl DescriptorRange
impl DescriptorRange
pub fn set_range_type(&mut self, range_type: DescriptorRangeType) -> &mut Self
pub fn with_range_type(self, range_type: DescriptorRangeType) -> Self
pub fn range_type(&self) -> DescriptorRangeType
pub fn set_num_descriptors(&mut self, num_descriptors: u32) -> &mut Self
pub fn with_num_descriptors(self, num_descriptors: u32) -> Self
pub fn num_descriptors(&self) -> u32
pub fn set_base_shader_register( &mut self, base_shader_register: u32, ) -> &mut Self
pub fn with_base_shader_register(self, base_shader_register: u32) -> Self
pub fn base_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: DescriptorRangeFlags) -> &mut Self
pub fn with_flags(self, flags: DescriptorRangeFlags) -> Self
pub fn flags(&self) -> DescriptorRangeFlags
pub fn set_offset_in_descriptors_from_table_start( &mut self, offset_in_descriptors_from_table_start: DescriptorRangeOffset, ) -> &mut Self
pub fn with_offset_in_descriptors_from_table_start( self, offset_in_descriptors_from_table_start: DescriptorRangeOffset, ) -> Self
pub fn offset_in_descriptors_from_table_start(&self) -> DescriptorRangeOffset
Trait Implementations§
Source§impl Clone for DescriptorRange
impl Clone for DescriptorRange
Source§fn clone(&self) -> DescriptorRange
fn clone(&self) -> DescriptorRange
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 DescriptorRange
impl Debug for DescriptorRange
Source§impl Default for DescriptorRange
impl Default for DescriptorRange
Source§fn default() -> DescriptorRange
fn default() -> DescriptorRange
Returns the “default value” for a type. Read more
Source§impl Hash for DescriptorRange
impl Hash for DescriptorRange
Source§impl Ord for DescriptorRange
impl Ord for DescriptorRange
Source§fn cmp(&self, other: &DescriptorRange) -> Ordering
fn cmp(&self, other: &DescriptorRange) -> 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 DescriptorRange
impl PartialEq for DescriptorRange
Source§impl PartialOrd for DescriptorRange
impl PartialOrd for DescriptorRange
impl Eq for DescriptorRange
impl StructuralPartialEq for DescriptorRange
Auto Trait Implementations§
impl Freeze for DescriptorRange
impl RefUnwindSafe for DescriptorRange
impl Send for DescriptorRange
impl Sync for DescriptorRange
impl Unpin for DescriptorRange
impl UnwindSafe for DescriptorRange
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