pub struct VulkanImageInfo {
pub format: u32,
pub pixel_size: PixelSize,
pub handle: u64,
pub layout: u32,
pub tiling: u32,
pub usage_flags: u32,
pub level_count: u32,
pub sample_count: u32,
pub memory_handle: u64,
pub view_handle: u64,
pub memory_size: u64,
pub is_protected: bool,
}Expand description
A Vulkan image as a render backend needs to know it: the handles are those of the device of the context that hands the value out, the other members are the numeric values of the Vulkan enumerations.
Fields§
§format: u32The VkFormat.
pixel_size: PixelSizeThe size in pixels.
handle: u64The VkImage.
layout: u32The VkImageLayout the image is in.
tiling: u32The VkImageTiling.
usage_flags: u32The VkImageUsageFlags the image was created with.
level_count: u32The number of mip levels.
sample_count: u32The number of samples per pixel.
memory_handle: u64The VkDeviceMemory bound to the image.
view_handle: u64The VkImageView of the image.
memory_size: u64The size of the memory in bytes.
is_protected: boolWhether the image is a protected one.
Trait Implementations§
Source§impl Clone for VulkanImageInfo
impl Clone for VulkanImageInfo
impl Copy for VulkanImageInfo
Source§impl Debug for VulkanImageInfo
impl Debug for VulkanImageInfo
Source§impl Default for VulkanImageInfo
impl Default for VulkanImageInfo
impl Eq for VulkanImageInfo
Source§impl Hash for VulkanImageInfo
impl Hash for VulkanImageInfo
Source§impl PartialEq for VulkanImageInfo
impl PartialEq for VulkanImageInfo
impl StructuralPartialEq for VulkanImageInfo
Auto Trait Implementations§
impl Freeze for VulkanImageInfo
impl RefUnwindSafe for VulkanImageInfo
impl Send for VulkanImageInfo
impl Sync for VulkanImageInfo
impl Unpin for VulkanImageInfo
impl UnsafeUnpin for VulkanImageInfo
impl UnwindSafe for VulkanImageInfo
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more