Struct vulkano::image::sys::UnsafeImageView [] [src]

pub struct UnsafeImageView {
    // some fields omitted
}

Methods

impl UnsafeImageView
[src]

unsafe fn raw(image: &UnsafeImage, mipmap_levels: Range<u32>, array_layers: Range<u32>) -> Result<UnsafeImageViewOomError>

See the docs of new().

unsafe fn new(image: &UnsafeImage, mipmap_levels: Range<u32>, array_layers: Range<u32>) -> UnsafeImageView

Creates a new view from an image.

Note that you must create the view with identity swizzling if you want to use this view as a framebuffer attachment.

Panic

  • Panicks if the device or host ran out of memory.

fn format(&self) -> Format

fn usage_transfer_src(&self) -> bool

fn usage_transfer_dest(&self) -> bool

fn usage_sampled(&self) -> bool

fn usage_storage(&self) -> bool

fn usage_color_attachment(&self) -> bool

fn usage_depth_stencil_attachment(&self) -> bool

fn usage_transient_attachment(&self) -> bool

fn usage_input_attachment(&self) -> bool

Trait Implementations

impl Debug for UnsafeImageView
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl VulkanObject for UnsafeImageView
[src]

type Object = ImageView

The type of the object.

fn internal_object(&self) -> ImageView

Returns a reference to the object.

impl Drop for UnsafeImageView
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more