Trait vulkano::image::view::ImageViewAbstract [−][src]
Trait for types that represent the GPU can access an image view.
Required methods
fn image(&self) -> &dyn ImageAccess
[src]
Returns the wrapped image that this image view was created from.
fn inner(&self) -> &UnsafeImageView
[src]
Returns the inner unsafe image view object used by this image view.
fn array_layers(&self) -> Range<u32>
[src]
Returns the range of array layers of the wrapped image that this view exposes.
fn format(&self) -> Format
[src]
Returns the format of this view. This can be different from the parent’s format.
fn identity_swizzle(&self) -> bool
[src]
Returns true if the view doesn’t use components swizzling.
Must be true when the view is used as a framebuffer attachment or TODO: I don’t remember the other thing.
fn ty(&self) -> ImageViewType
[src]
Returns the ImageViewType
of this image view.
Provided methods
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
[src]
Returns true if the given sampler can be used with this image view.
This method should check whether the sampler’s configuration can be used with the format of the view.
Trait Implementations
impl Eq for dyn ImageViewAbstract + Send + Sync
[src]
impl Hash for dyn ImageViewAbstract + Send + Sync
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<dyn ImageViewAbstract + 'static + Sync + Send> for dyn ImageViewAbstract + Send + Sync
[src]
Implementors
impl<I> ImageViewAbstract for ImageView<I> where
I: ImageAccess,
[src]
I: ImageAccess,
fn image(&self) -> &dyn ImageAccess
[src]
fn inner(&self) -> &UnsafeImageView
[src]
fn array_layers(&self) -> Range<u32>
[src]
fn format(&self) -> Format
[src]
fn identity_swizzle(&self) -> bool
[src]
fn ty(&self) -> ImageViewType
[src]
impl<T> ImageViewAbstract for T where
T: SafeDeref,
T::Target: ImageViewAbstract,
[src]
T: SafeDeref,
T::Target: ImageViewAbstract,