pub struct Resource<'a> {
pub id: Handle<VariableId>,
pub base_type_id: Handle<TypeId>,
pub type_id: Handle<TypeId>,
pub name: CompilerStr<'a>,
}Expand description
Description of a shader resource.
Fields§
§id: Handle<VariableId>A handle to the variable this resource points to.
base_type_id: Handle<TypeId>A handle to the base type of this resource.
type_id: Handle<TypeId>A handle to the type of this resource, often a pointer or array.
name: CompilerStr<'a>The name of this resource.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Resource<'a>
impl<'a> RefUnwindSafe for Resource<'a>
impl<'a> Send for Resource<'a>
impl<'a> Sync for Resource<'a>
impl<'a> Unpin for Resource<'a>
impl<'a> UnwindSafe for Resource<'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
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)