pub struct ShaderCompileOptions {
pub workgroup_size: [u32; 3],
pub extra_defines: HashMap<String, String>,
pub max_source_bytes: usize,
}Expand description
Options controlling how a shader variant is compiled.
Fields§
§workgroup_size: [u32; 3]Workgroup sizes to try when specialising the shader (x, y, z).
extra_defines: HashMap<String, String>Additional #define-style substitutions beyond the registry defaults.
max_source_bytes: usizeOptional byte-size budget. Compilation fails if the instantiated WGSL exceeds this limit (0 = unlimited).
Implementations§
Trait Implementations§
Source§impl Clone for ShaderCompileOptions
impl Clone for ShaderCompileOptions
Source§fn clone(&self) -> ShaderCompileOptions
fn clone(&self) -> ShaderCompileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShaderCompileOptions
impl Debug for ShaderCompileOptions
Source§impl Default for ShaderCompileOptions
impl Default for ShaderCompileOptions
Source§impl PartialEq for ShaderCompileOptions
impl PartialEq for ShaderCompileOptions
Source§fn eq(&self, other: &ShaderCompileOptions) -> bool
fn eq(&self, other: &ShaderCompileOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShaderCompileOptions
Auto Trait Implementations§
impl Freeze for ShaderCompileOptions
impl RefUnwindSafe for ShaderCompileOptions
impl Send for ShaderCompileOptions
impl Sync for ShaderCompileOptions
impl Unpin for ShaderCompileOptions
impl UnsafeUnpin for ShaderCompileOptions
impl UnwindSafe for ShaderCompileOptions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more