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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)