Struct naga::SpecialTypes
source · pub struct SpecialTypes {
pub ray_desc: Option<Handle<Type>>,
pub ray_intersection: Option<Handle<Type>>,
pub predeclared_types: FastIndexMap<PredeclaredType, Handle<Type>>,
}
Expand description
Set of special types that can be optionally generated by the frontends.
Fields§
§ray_desc: Option<Handle<Type>>
Type for RayDesc
.
Call Module::generate_ray_desc_type
to populate this if
needed and return the handle.
ray_intersection: Option<Handle<Type>>
Type for RayIntersection
.
Call Module::generate_ray_intersection_type
to populate
this if needed and return the handle.
predeclared_types: FastIndexMap<PredeclaredType, Handle<Type>>
Types for predeclared wgsl types instantiated on demand.
Call Module::generate_predeclared_type
to populate this if
needed and return the handle.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for SpecialTypes
impl<'arbitrary> Arbitrary<'arbitrary> for SpecialTypes
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for SpecialTypes
impl Clone for SpecialTypes
source§fn clone(&self) -> SpecialTypes
fn clone(&self) -> SpecialTypes
Returns a copy 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 moresource§impl Debug for SpecialTypes
impl Debug for SpecialTypes
source§impl Default for SpecialTypes
impl Default for SpecialTypes
source§fn default() -> SpecialTypes
fn default() -> SpecialTypes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SpecialTypes
impl<'de> Deserialize<'de> for SpecialTypes
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
Auto Trait Implementations§
impl RefUnwindSafe for SpecialTypes
impl Send for SpecialTypes
impl Sync for SpecialTypes
impl Unpin for SpecialTypes
impl UnwindSafe for SpecialTypes
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