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