Trait sierra::TypedDescriptorBinding [−][src]
pub trait TypedDescriptorBinding {
type Descriptors;
const COUNT: u32;
const FLAGS: DescriptorBindingFlags;
fn eq(&self, descriptors: &Self::Descriptors) -> bool;
fn get_descriptors(
&self,
device: &Device
) -> Result<Self::Descriptors, OutOfMemory>;
}
Expand description
Trait for all types that can be used as descriptor.
Associated Types
type Descriptors
type Descriptors
Descriptors value.
Associated Constants
const FLAGS: DescriptorBindingFlags
const FLAGS: DescriptorBindingFlags
Flags necessary for this binding type.
Required methods
fn eq(&self, descriptors: &Self::Descriptors) -> bool
fn eq(&self, descriptors: &Self::Descriptors) -> bool
Compare with image view currently bound to descriptor set.
Returns true
if self is equivalent specified image view,
and no update is required.
fn get_descriptors(
&self,
device: &Device
) -> Result<Self::Descriptors, OutOfMemory>
fn get_descriptors(
&self,
device: &Device
) -> Result<Self::Descriptors, OutOfMemory>
Returns BufferRange
equivalent to self.