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<UnsafeImageView, OomError>
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
- Panics 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]
impl VulkanObject for UnsafeImageView
[src]
type Object = ImageView
The type of the object.
fn internal_object(&self) -> ImageView
Returns a reference to the object.