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