Struct vulkano::descriptor::descriptor::DescriptorImageDesc
[−]
[src]
pub struct DescriptorImageDesc { pub sampled: bool, pub dimensions: DescriptorImageDescDimensions, pub format: Option<Format>, pub multisampled: bool, pub array_layers: DescriptorImageDescArray, }
Additional description for descriptors that contain images.
Fields
sampled: bool
If true
, the image can be sampled by the shader. Only images that were created with the
sampled
usage can be attached to the descriptor.
dimensions: DescriptorImageDescDimensions
The kind of image: one-dimensional, two-dimensional, three-dimensional, or cube.
format: Option<Format>
The format of the image, or None
if the format is unknown. If Some
, only images with
exactly that format can be attached.
multisampled: bool
True if the image is multisampled.
array_layers: DescriptorImageDescArray
Whether the descriptor contains one or more array layers of an image.
Methods
impl DescriptorImageDesc
[src]
fn is_superset_of(&self, other: &DescriptorImageDesc) -> bool
Checks whether we are a superset of another image.
Trait Implementations
impl Debug for DescriptorImageDesc
[src]
impl Copy for DescriptorImageDesc
[src]
impl Clone for DescriptorImageDesc
[src]
fn clone(&self) -> DescriptorImageDesc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for DescriptorImageDesc
[src]
fn eq(&self, __arg_0: &DescriptorImageDesc) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DescriptorImageDesc) -> bool
This method tests for !=
.