pub struct GpuShaderModule {
pub source: String,
pub has_vertex_entry: bool,
pub has_fragment_entry: bool,
pub vertex_entry: String,
pub fragment_entry: String,
pub uniforms_declared: Vec<String>,
pub bind_groups_declared: usize,
}Expand description
Parsed and compiled WGSL shader module with verified reflection data.
Fields§
§source: String§has_vertex_entry: bool§has_fragment_entry: bool§vertex_entry: String§fragment_entry: String§uniforms_declared: Vec<String>§bind_groups_declared: usizeTrait Implementations§
Source§impl Clone for GpuShaderModule
impl Clone for GpuShaderModule
Source§impl Debug for GpuShaderModule
impl Debug for GpuShaderModule
Source§impl PartialEq for GpuShaderModule
impl PartialEq for GpuShaderModule
impl StructuralPartialEq for GpuShaderModule
Auto Trait Implementations§
impl Forget for GpuShaderModule
impl Freeze for GpuShaderModule
impl Move 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