pub struct BuiltinResource<'a> {
pub builtin: BuiltIn,
pub value_type_id: Handle<TypeId>,
pub resource: Resource<'a>,
}Expand description
Description of a built-in shader resource.
Fields§
§builtin: BuiltInThe SPIR-V built-in for this resource.
value_type_id: Handle<TypeId>A handle to the type ID of the value.
resource: Resource<'a>The resource data for this built-in resource.
Trait Implementations§
Source§impl Clone for BuiltinResource<'_>
impl Clone for BuiltinResource<'_>
Source§fn clone(&self) -> BuiltinResource<'static>
fn clone(&self) -> BuiltinResource<'static>
Returns a duplicate 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<'a> Debug for BuiltinResource<'a>
impl<'a> Debug for BuiltinResource<'a>
Source§impl<'a, 'b> From<&'a BuiltinResource<'b>> for Handle<VariableId>
impl<'a, 'b> From<&'a BuiltinResource<'b>> for Handle<VariableId>
Source§fn from(value: &'a BuiltinResource<'b>) -> Self
fn from(value: &'a BuiltinResource<'b>) -> Self
Converts to this type from the input type.
Source§impl From<BuiltinResource<'_>> for Handle<VariableId>
impl From<BuiltinResource<'_>> for Handle<VariableId>
Source§fn from(value: BuiltinResource<'_>) -> Self
fn from(value: BuiltinResource<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for BuiltinResource<'a>
impl<'a> RefUnwindSafe for BuiltinResource<'a>
impl<'a> Send for BuiltinResource<'a>
impl<'a> Sync for BuiltinResource<'a>
impl<'a> Unpin for BuiltinResource<'a>
impl<'a> UnwindSafe for BuiltinResource<'a>
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