[−][src]Struct rafx_api::vulkan::RafxTextureVulkan
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]
device_context: &RafxDeviceContextVulkan,
texture_def: &RafxTextureDef
) -> RafxResult<RafxTextureVulkan>
pub fn from_existing(
device_context: &RafxDeviceContextVulkan,
existing_image: Option<RafxRawImageVulkan>,
texture_def: &RafxTextureDef
) -> RafxResult<RafxTextureVulkan>
[src]
device_context: &RafxDeviceContextVulkan,
existing_image: Option<RafxRawImageVulkan>,
texture_def: &RafxTextureDef
) -> RafxResult<RafxTextureVulkan>
Trait Implementations
impl Debug for RafxTextureVulkan
[src]
impl Drop for RafxTextureVulkan
[src]
Auto Trait Implementations
impl RefUnwindSafe for RafxTextureVulkan
[src]
impl Send for RafxTextureVulkan
[src]
impl Sync for RafxTextureVulkan
[src]
impl Unpin for RafxTextureVulkan
[src]
impl UnwindSafe for RafxTextureVulkan
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Downcast + Send + Sync,
[src]
T: Downcast + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,