pub struct Options {
pub lang_version: (u8, u8),
pub per_entry_point_map: EntryPointResourceMap,
pub inline_samplers: Vec<InlineSampler>,
pub spirv_cross_compatibility: bool,
pub fake_missing_bindings: bool,
pub bounds_check_policies: BoundsCheckPolicies,
pub zero_initialize_workgroup_memory: bool,
pub force_loop_bounding: bool,
}
Fields§
§lang_version: (u8, u8)
(Major, Minor) target version of the Metal Shading Language.
per_entry_point_map: EntryPointResourceMap
Map of entry-point resources, indexed by entry point function name, to slots.
inline_samplers: Vec<InlineSampler>
Samplers to be inlined into the code.
spirv_cross_compatibility: bool
Make it possible to link different stages via SPIRV-Cross.
fake_missing_bindings: bool
Don’t panic on missing bindings, instead generate invalid MSL.
bounds_check_policies: BoundsCheckPolicies
Bounds checking policies.
zero_initialize_workgroup_memory: bool
Should workgroup variables be zero initialized (by polyfilling)?
force_loop_bounding: bool
If set, loops will have code injected into them, forcing the compiler to think the number of iterations is bounded.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Options
impl PartialEq for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.