#include <khr_swapchain_image_vk.h>
Public Member Functions | |
KHRSwapchainImageVK (TextureDescriptor desc, const vk::Device &device, vk::Image image) | |
~KHRSwapchainImageVK () override | |
bool | IsValid () const |
PixelFormat | GetPixelFormat () const |
ISize | GetSize () const |
vk::Image | GetImage () const override |
Get the image handle for this texture source. More... | |
std::shared_ptr< Texture > | GetMSAATexture () const |
std::shared_ptr< Texture > | GetDepthStencilTexture () const |
vk::ImageView | GetImageView () const override |
Retrieve the image view used for sampling/blitting/compute with this texture source. More... | |
vk::ImageView | GetRenderTargetView () const override |
Retrieve the image view used for render target attachments with this texture source. More... | |
void | SetMSAATexture (std::shared_ptr< Texture > texture) |
void | SetDepthStencilTexture (std::shared_ptr< Texture > texture) |
bool | IsSwapchainImage () const override |
Determines if swapchain image. That is, an image used as the root render target. More... | |
![]() | |
virtual | ~TextureSourceVK () |
const TextureDescriptor & | GetTextureDescriptor () const |
Gets the texture descriptor for this image source. More... | |
fml::Status | SetLayout (const BarrierVK &barrier) const |
Encodes the layout transition barrier to barrier.cmd_buffer for the image. More... | |
vk::ImageLayout | SetLayoutWithoutEncoding (vk::ImageLayout layout) const |
Store the layout of the image. More... | |
vk::ImageLayout | GetLayout () const |
Get the last layout assigned to the TextureSourceVK. More... | |
virtual std::shared_ptr< YUVConversionVK > | GetYUVConversion () const |
When sampling from textures whose formats are not known to Vulkan, a custom conversion is necessary to setup custom samplers. This accessor provides this conversion if one is present. Most texture source have none. More... | |
void | SetCachedFramebuffer (const SharedHandleVK< vk::Framebuffer > &framebuffer) |
void | SetCachedRenderPass (const SharedHandleVK< vk::RenderPass > &render_pass) |
SharedHandleVK< vk::Framebuffer > | GetCachedFramebuffer () const |
SharedHandleVK< vk::RenderPass > | GetCachedRenderPass () const |
Additional Inherited Members | |
![]() | |
TextureSourceVK (TextureDescriptor desc) | |
![]() | |
const TextureDescriptor | desc_ |
Definition at line 16 of file khr_swapchain_image_vk.h.
impeller::KHRSwapchainImageVK::KHRSwapchainImageVK | ( | TextureDescriptor | desc, |
const vk::Device & | device, | ||
vk::Image | image | ||
) |
Definition at line 9 of file khr_swapchain_image_vk.cc.
References impeller::TextureDescriptor::format, impeller::TextureDescriptor::mip_count, impeller::ToArrayLayerCount(), impeller::ToVKImageFormat(), and impeller::TextureDescriptor::type.
|
overridedefault |
std::shared_ptr< Texture > impeller::KHRSwapchainImageVK::GetDepthStencilTexture | ( | ) | const |
Definition at line 42 of file khr_swapchain_image_vk.cc.
|
overridevirtual |
Get the image handle for this texture source.
Implements impeller::TextureSourceVK.
Definition at line 64 of file khr_swapchain_image_vk.cc.
|
overridevirtual |
Retrieve the image view used for sampling/blitting/compute with this texture source.
Implements impeller::TextureSourceVK.
Definition at line 69 of file khr_swapchain_image_vk.cc.
std::shared_ptr< Texture > impeller::KHRSwapchainImageVK::GetMSAATexture | ( | ) | const |
Definition at line 38 of file khr_swapchain_image_vk.cc.
PixelFormat impeller::KHRSwapchainImageVK::GetPixelFormat | ( | ) | const |
Definition at line 55 of file khr_swapchain_image_vk.cc.
References impeller::TextureSourceVK::desc_, and impeller::TextureDescriptor::format.
|
overridevirtual |
Retrieve the image view used for render target attachments with this texture source.
ImageViews used as render target attachments cannot have any mip levels. In cases where we want to generate mipmaps with the result of this texture, we need to create multiple image views.
Implements impeller::TextureSourceVK.
Definition at line 74 of file khr_swapchain_image_vk.cc.
ISize impeller::KHRSwapchainImageVK::GetSize | ( | ) | const |
Definition at line 59 of file khr_swapchain_image_vk.cc.
References impeller::TextureSourceVK::desc_, and impeller::TextureDescriptor::size.
|
inlineoverridevirtual |
Determines if swapchain image. That is, an image used as the root render target.
Implements impeller::TextureSourceVK.
Definition at line 47 of file khr_swapchain_image_vk.h.
bool impeller::KHRSwapchainImageVK::IsValid | ( | ) | const |
Definition at line 34 of file khr_swapchain_image_vk.cc.
void impeller::KHRSwapchainImageVK::SetDepthStencilTexture | ( | std::shared_ptr< Texture > | texture | ) |
Definition at line 50 of file khr_swapchain_image_vk.cc.
void impeller::KHRSwapchainImageVK::SetMSAATexture | ( | std::shared_ptr< Texture > | texture | ) |
Definition at line 46 of file khr_swapchain_image_vk.cc.