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