[−][src]Enum spirq::ty::DescriptorType
Structured representation of descriptor types.
Variants
Sampler(u32)
Implementations
impl DescriptorType
[src]
pub fn nbyte(&self) -> Option<usize>
[src]
Get the size of buffer (in bytes) needed to contain all the data for this buffer object or push constant buffer.
pub fn nbind(&self) -> u32
[src]
Number of bindings at the binding point. All descriptors can have multiple binding points.
pub fn resolve<S: AsRef<Sym>>(
&self,
sym: S
) -> Option<MemberVariableResolution<'_>>
[src]
&self,
sym: S
) -> Option<MemberVariableResolution<'_>>
Resolve a symbol WITHIN the descriptor type. The symbol should not be led by descriptor set numbers and binding point numbers.
pub fn walk<'a>(&'a self) -> Walk<'a>ⓘNotable traits for Walk<'a>
impl<'a> Iterator for Walk<'a> type Item = MemberVariableRouting<'a>;
[src]
Notable traits for Walk<'a>
impl<'a> Iterator for Walk<'a> type Item = MemberVariableRouting<'a>;
pub fn is_uniform_buf(&self) -> bool
[src]
pub fn is_storage_buf(&self) -> bool
[src]
pub fn is_img(&self) -> bool
[src]
pub fn is_sampler(&self) -> bool
[src]
pub fn is_sampled_img(&self) -> bool
[src]
pub fn is_input_attm(&self) -> bool
[src]
Trait Implementations
impl Clone for DescriptorType
[src]
fn clone(&self) -> DescriptorType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DescriptorType
[src]
impl Eq for DescriptorType
[src]
impl Hash for DescriptorType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DescriptorType> for DescriptorType
[src]
fn eq(&self, other: &DescriptorType) -> bool
[src]
fn ne(&self, other: &DescriptorType) -> bool
[src]
impl StructuralEq for DescriptorType
[src]
impl StructuralPartialEq for DescriptorType
[src]
Auto Trait Implementations
impl RefUnwindSafe for DescriptorType
impl Send for DescriptorType
impl Sync for DescriptorType
impl Unpin for DescriptorType
impl UnwindSafe for DescriptorType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,