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