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