pub struct VertexStateDesc {
pub module: ShaderModule,
pub entry_point: Option<String>,
pub compilation_options: CompilationOptions,
pub buffers: Vec<Option<VertexBufferLayoutDesc>>,
}Expand description
Owned vertex stage of a RenderPipelineDesc.
Fields§
§module: ShaderModuleThe compiled shader module for this stage.
entry_point: Option<String>The name of the entry point to use, or the module’s only one.
compilation_options: CompilationOptionsAdvanced options for when this stage is compiled.
buffers: Vec<Option<VertexBufferLayoutDesc>>The vertex buffers this stage reads.
Implementations§
Trait Implementations§
Source§impl Clone for VertexStateDesc
impl Clone for VertexStateDesc
Source§impl Debug for VertexStateDesc
impl Debug for VertexStateDesc
Source§impl PartialEq for VertexStateDesc
impl PartialEq for VertexStateDesc
impl StructuralPartialEq for VertexStateDesc
Auto Trait Implementations§
impl !RefUnwindSafe for VertexStateDesc
impl !UnwindSafe for VertexStateDesc
impl Forget for VertexStateDesc
impl Freeze for VertexStateDesc
impl Send for VertexStateDesc
impl Sync for VertexStateDesc
impl Unpin for VertexStateDesc
impl UnsafeUnpin for VertexStateDesc
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more