pub struct MetalVertexDescriptor { /* private fields */ }Expand description
A vertex descriptor for specifying vertex buffer layout
Implementations§
Source§impl MetalVertexDescriptor
impl MetalVertexDescriptor
Sourcepub fn set_attribute(
&self,
index: usize,
format: MTLVertexFormat,
offset: usize,
buffer_index: usize,
)
pub fn set_attribute( &self, index: usize, format: MTLVertexFormat, offset: usize, buffer_index: usize, )
Set an attribute’s format, offset, and buffer index
Sourcepub fn set_layout(
&self,
buffer_index: usize,
stride: usize,
step_function: MTLVertexStepFunction,
)
pub fn set_layout( &self, buffer_index: usize, stride: usize, step_function: MTLVertexStepFunction, )
Set a buffer layout’s stride and step function
Trait Implementations§
Source§impl Debug for MetalVertexDescriptor
impl Debug for MetalVertexDescriptor
Source§impl Default for MetalVertexDescriptor
impl Default for MetalVertexDescriptor
Auto Trait Implementations§
impl Freeze for MetalVertexDescriptor
impl RefUnwindSafe for MetalVertexDescriptor
impl !Send for MetalVertexDescriptor
impl !Sync for MetalVertexDescriptor
impl Unpin for MetalVertexDescriptor
impl UnwindSafe for MetalVertexDescriptor
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