[][src]Struct rafx_api::vulkan::RafxTextureVulkan

pub struct RafxTextureVulkan { /* fields omitted */ }

Holds the vk::Image and allocation as well as a few vk::ImageViews depending on the provided RafxResourceType in the texture_def.

Implementations

impl RafxTextureVulkan[src]

pub fn texture_def(&self) -> &RafxTextureDef[src]

pub fn extents(&self) -> &RafxExtents3D[src]

pub fn array_length(&self) -> u32[src]

pub fn vk_aspect_mask(&self) -> ImageAspectFlags[src]

pub fn vk_image(&self) -> Image[src]

pub fn vk_allocation(&self) -> Option<Allocation>[src]

pub fn device_context(&self) -> &RafxDeviceContextVulkan[src]

pub fn vk_srv_view(&self) -> Option<ImageView>[src]

pub fn vk_srv_view_stencil(&self) -> Option<ImageView>[src]

pub fn vk_uav_views(&self) -> &[ImageView][src]

pub fn new(
    device_context: &RafxDeviceContextVulkan,
    texture_def: &RafxTextureDef
) -> RafxResult<RafxTextureVulkan>
[src]

pub fn from_existing(
    device_context: &RafxDeviceContextVulkan,
    existing_image: Option<RafxRawImageVulkan>,
    texture_def: &RafxTextureDef
) -> RafxResult<RafxTextureVulkan>
[src]

Trait Implementations

impl Debug for RafxTextureVulkan[src]

impl Drop for RafxTextureVulkan[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.