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 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
Auto Trait Implementations§
impl Freeze for SpecialTypes
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