pub struct VulkanImage { /* private fields */ }Implementations§
Source§impl VulkanImage
impl VulkanImage
Sourcepub fn from_raw(
image: Image,
view: ImageView,
layout: ImageLayout,
extent: [u32; 2],
format: Format,
subresource_range: ImageSubresourceRange,
flags: ImageCreateFlags,
usage: ImageUsageFlags,
) -> Self
pub fn from_raw( image: Image, view: ImageView, layout: ImageLayout, extent: [u32; 2], format: Format, subresource_range: ImageSubresourceRange, flags: ImageCreateFlags, usage: ImageUsageFlags, ) -> Self
Describes a borrowed image view. subresource_range must match the range used
to create view; extent is its base mip’s size in pixels and format is
the view format. This does not validate handles or transition image layouts.
pub fn image(self) -> Image
pub fn view(self) -> ImageView
pub fn layout(self) -> ImageLayout
pub fn extent(self) -> [u32; 2]
pub fn format(self) -> Format
pub fn usage(self) -> ImageUsageFlags
pub fn subresource_range(self) -> ImageSubresourceRange
Sourcepub fn from_graph(
image: &Image,
view: ImageViewInfo,
layout: ImageLayout,
) -> Result<Self>
pub fn from_graph( image: &Image, view: ImageViewInfo, layout: ImageLayout, ) -> Result<Self>
Gets a cached graph image view and describes its actual subresource range.
The graph image must outlive GPU evaluation; layout must describe its
state at evaluation time. No layout transitions are recorded here.
§Errors
Returns an error if the graph cannot create the requested view.
Trait Implementations§
Source§impl Clone for VulkanImage
impl Clone for VulkanImage
Source§fn clone(&self) -> VulkanImage
fn clone(&self) -> VulkanImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VulkanImage
Source§impl Debug for VulkanImage
impl Debug for VulkanImage
impl Eq for VulkanImage
Source§impl PartialEq for VulkanImage
impl PartialEq for VulkanImage
impl StructuralPartialEq for VulkanImage
Auto Trait Implementations§
impl Freeze for VulkanImage
impl RefUnwindSafe for VulkanImage
impl Send for VulkanImage
impl Sync for VulkanImage
impl Unpin for VulkanImage
impl UnsafeUnpin for VulkanImage
impl UnwindSafe for VulkanImage
Blanket Implementations§
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