pub struct GpuShaderModule { /* private fields */ }Expand description
Wrapper around GPU shader module that can be real or mock.
Implementations§
Source§impl GpuShaderModule
impl GpuShaderModule
Sourcepub fn from_wgpu(module: ShaderModule) -> Self
pub fn from_wgpu(module: ShaderModule) -> Self
Create from real WGPU shader module
Sourcepub fn as_wgpu(&self) -> &ShaderModule
pub fn as_wgpu(&self) -> &ShaderModule
Get the underlying wgpu::ShaderModule (if real)
Trait Implementations§
Source§impl Clone for GpuShaderModule
impl Clone for GpuShaderModule
Source§fn clone(&self) -> GpuShaderModule
fn clone(&self) -> GpuShaderModule
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for GpuShaderModule
impl !RefUnwindSafe for GpuShaderModule
impl Send for GpuShaderModule
impl Sync for GpuShaderModule
impl Unpin for GpuShaderModule
impl UnsafeUnpin for GpuShaderModule
impl !UnwindSafe for GpuShaderModule
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