pub struct ShaderModule { /* private fields */ }
Expand description
Handle to a compiled shader module.
A ShaderModule
represents a compiled shader module on the GPU. It can be created by passing
source code to Device::create_shader_module
or valid SPIR-V binary to
Device::create_shader_module_spirv
. Shader modules are used to define programmable stages
of a pipeline.
Corresponds to WebGPU GPUShaderModule
.
Implementations§
Source§impl ShaderModule
impl ShaderModule
Sourcepub fn get_compilation_info(
&self,
) -> impl Future<Output = CompilationInfo> + WasmNotSend
pub fn get_compilation_info( &self, ) -> impl Future<Output = CompilationInfo> + WasmNotSend
Get the compilation info for the shader module.
Trait Implementations§
Source§impl Debug for ShaderModule
impl Debug for ShaderModule
Source§impl Drop for ShaderModule
impl Drop for ShaderModule
Source§impl Hash for ShaderModule
impl Hash for ShaderModule
Source§impl Ord for ShaderModule
impl Ord for ShaderModule
Source§impl PartialEq for ShaderModule
impl PartialEq for ShaderModule
Source§impl PartialOrd for ShaderModule
impl PartialOrd for ShaderModule
impl Eq for ShaderModule
Auto Trait Implementations§
impl Freeze for ShaderModule
impl !RefUnwindSafe for ShaderModule
impl Send for ShaderModule
impl Sync for ShaderModule
impl Unpin for ShaderModule
impl !UnwindSafe for ShaderModule
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.