Struct sierra::VertexShader
source · pub struct VertexShader { /* private fields */ }
Implementations§
source§impl VertexShader
impl VertexShader
pub fn new(module: ShaderModule, entry: impl Into<Cow<'static, str>>) -> Self
pub fn with_main(module: ShaderModule) -> Self
pub fn module(&self) -> &ShaderModule
pub fn entry(&self) -> &str
Trait Implementations§
source§impl Clone for VertexShader
impl Clone for VertexShader
source§fn clone(&self) -> VertexShader
fn clone(&self) -> VertexShader
Returns a copy 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 VertexShader
impl Debug for VertexShader
source§impl From<VertexShader> for Shader
impl From<VertexShader> for Shader
source§fn from(shader: VertexShader) -> Shader
fn from(shader: VertexShader) -> Shader
Converts to this type from the input type.
source§impl Hash for VertexShader
impl Hash for VertexShader
source§impl PartialEq<VertexShader> for VertexShader
impl PartialEq<VertexShader> for VertexShader
source§fn eq(&self, other: &VertexShader) -> bool
fn eq(&self, other: &VertexShader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Shader> for VertexShader
impl TryFrom<Shader> for VertexShader
§type Error = WrongShaderStage
type Error = WrongShaderStage
The type returned in the event of a conversion error.