pub struct VertexState<'a, SM = Arc<ShaderModule>> {
pub stage: ProgrammableStageDescriptor<'a, SM>,
pub buffers: Cow<'a, [Option<VertexBufferLayout<'a>>]>,
}Expand description
Describes the vertex process in a render pipeline. cbindgen:ignore
Fields§
§stage: ProgrammableStageDescriptor<'a, SM>The compiled vertex stage and its entry point.
buffers: Cow<'a, [Option<VertexBufferLayout<'a>>]>The format of any vertex buffers used with this pipeline.
Trait Implementations§
Source§impl<'a, SM: Clone> Clone for VertexState<'a, SM>
impl<'a, SM: Clone> Clone for VertexState<'a, SM>
Source§impl<'a, SM: Debug> Debug for VertexState<'a, SM>
impl<'a, SM: Debug> Debug for VertexState<'a, SM>
Source§impl<'de, 'a, SM> Deserialize<'de> for VertexState<'a, SM>where
SM: Deserialize<'de>,
Available on crate feature serde only.
impl<'de, 'a, SM> Deserialize<'de> for VertexState<'a, SM>where
SM: Deserialize<'de>,
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a, SM> Forget for VertexState<'a, SM>
impl<'a, SM> Freeze for VertexState<'a, SM>
impl<'a, SM> Move for VertexState<'a, SM>
impl<'a, SM> RefUnwindSafe for VertexState<'a, SM>where
SM: RefUnwindSafe,
String: RefUnwindSafe,
Vec<VertexAttribute>: RefUnwindSafe,
Vec<Option<VertexBufferLayout<'a>>>: RefUnwindSafe,
impl<'a, SM> Send for VertexState<'a, SM>
impl<'a, SM> Sync for VertexState<'a, SM>
impl<'a, SM> Unpin for VertexState<'a, SM>
impl<'a, SM> UnsafeUnpin for VertexState<'a, SM>where
SM: UnsafeUnpin,
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
&'a [Option<VertexBufferLayout<'a>>]: UnsafeUnpin,
Vec<Option<VertexBufferLayout<'a>>>: UnsafeUnpin,
impl<'a, SM> UnwindSafe for VertexState<'a, SM>where
SM: UnwindSafe,
&'a str: UnwindSafe,
String: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
&'a [Option<VertexBufferLayout<'a>>]: UnwindSafe,
Vec<Option<VertexBufferLayout<'a>>>: UnwindSafe,
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