pub struct Resource<'a> {
pub type_id: Id,
pub base_type_id: Id,
pub variable_id: Id,
pub name: Option<CompilerStr<'a>>,
pub count: ResourceCount,
pub offset: Option<u32>,
}Expand description
Represents a shader resource.
Fields§
§type_id: IdThe outer type of the resource.
base_type_id: IdThe inner type of the resource.
variable_id: IdThe variable id of the resource.
name: Option<CompilerStr<'a>>The variable name string of the resource.
count: ResourceCountThe number of base type values in an array.
offset: Option<u32>Offset of the first member in a struct used for push constants.
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> UnsafeUnpin 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