Struct wgpu_core::validation::Resource
source · struct Resource {
name: Option<String>,
bind: ResourceBinding,
ty: ResourceType,
class: AddressSpace,
}
Fields§
§name: Option<String>
§bind: ResourceBinding
§ty: ResourceType
§class: AddressSpace
Implementations§
source§impl Resource
impl Resource
fn check_binding_use( &self, entry: &BindGroupLayoutEntry, ) -> Result<(), BindingError>
fn derive_binding_type(&self) -> Result<BindingType, BindingError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
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