Struct vulkano::image::sys::UnsafeImageView
[−]
[src]
pub struct UnsafeImageView { /* fields omitted */ }
Methods
impl UnsafeImageView
[src]
pub unsafe fn raw(
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
See the docs of new().
pub unsafe fn new(
image: &UnsafeImage,
ty: ViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> UnsafeImageView
[src]
image: &UnsafeImage,
ty: ViewType,
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
mipmap_levels
orarray_layers
is out of range of the image. - Panics if the view types doesn't match the dimensions of the image (for example a 2D view from a 3D image).
- Panics if trying to create a cubemap with a number of array layers different from 6.
- Panics if trying to create a cubemap array with a number of array layers not a multiple of 6.
- Panics if the device or host ran out of memory.
pub fn format(&self) -> Format
[src]
pub fn usage_transfer_source(&self) -> bool
[src]
pub fn usage_transfer_destination(&self) -> bool
[src]
pub fn usage_sampled(&self) -> bool
[src]
pub fn usage_storage(&self) -> bool
[src]
pub fn usage_color_attachment(&self) -> bool
[src]
pub fn usage_depth_stencil_attachment(&self) -> bool
[src]
pub fn usage_transient_attachment(&self) -> bool
[src]
pub fn usage_input_attachment(&self) -> bool
[src]
Trait Implementations
impl VulkanObject for UnsafeImageView
[src]
type Object = ImageView
The type of the object.
const TYPE: DebugReportObjectTypeEXT
TYPE: DebugReportObjectTypeEXT = vk::DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT
The DebugReportObjectTypeEXT
of the internal Vulkan handle.
fn internal_object(&self) -> ImageView
[src]
Returns a reference to the object.
impl Debug for UnsafeImageView
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more