#include <khr_swapchain_image_vk.h>
Public Member Functions | |
| KHRSwapchainImageVK (TextureDescriptor desc, const vk::Device &device, vk::Image image) | |
| ~KHRSwapchainImageVK () override | |
| bool | IsValid () const |
| vk::Image | GetImage () const override |
| Get the image handle for this texture source. | |
| vk::ImageView | GetImageView () const override |
| Retrieve the image view used for sampling/blitting/compute with this texture source. | |
| vk::ImageView | GetRenderTargetView (uint32_t mip_level, uint32_t array_layer) const override |
| Retrieve the image view used to attach a specific subresource of this texture as a render target. | |
| bool | IsSwapchainImage () const override |
| Determines if swapchain image. That is, an image used as the root render target. | |
Public Member Functions inherited from impeller::TextureSourceVK | |
| virtual | ~TextureSourceVK () |
| const TextureDescriptor & | GetTextureDescriptor () const |
| Gets the texture descriptor for this image source. | |
| fml::Status | SetLayout (const BarrierVK &barrier) const |
Encodes the layout transition barrier to barrier.cmd_buffer for the image. | |
| vk::ImageLayout | SetLayoutWithoutEncoding (vk::ImageLayout layout) const |
| Store the layout of the image. | |
| vk::ImageLayout | GetLayout () const |
| Get the last layout assigned to the TextureSourceVK. | |
| 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. | |
| void | SetCachedFrameData (const FramebufferAndRenderPass &data, SampleCount sample_count, uint32_t mip_level=0u, uint32_t slice=0u) |
| FramebufferAndRenderPass | GetCachedFrameData (SampleCount sample_count, uint32_t mip_level=0u, uint32_t slice=0u) const |
Additional Inherited Members | |
Protected Member Functions inherited from impeller::TextureSourceVK | |
| TextureSourceVK (TextureDescriptor desc) | |
Protected Attributes inherited from impeller::TextureSourceVK | |
| const TextureDescriptor | desc_ |
Definition at line 15 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 device, impeller::TextureDescriptor::format, impeller::TextureDescriptor::mip_count, impeller::ToArrayLayerCount(), impeller::ToVKImageFormat(), impeller::TextureDescriptor::type, and view.
|
overridedefault |
|
overridevirtual |
Get the image handle for this texture source.
Implements impeller::TextureSourceVK.
Definition at line 39 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 44 of file khr_swapchain_image_vk.cc.
|
overridevirtual |
Retrieve the image view used to attach a specific subresource of this texture as a render target.
The returned view covers a single mip level and a single array layer (or cube map face), since attachment views cannot span multiple levels or layers.
| [in] | mip_level | The mip level to attach. |
| [in] | array_layer | The array layer or cube map face to attach. |
Implements impeller::TextureSourceVK.
Definition at line 49 of file khr_swapchain_image_vk.cc.
|
overridevirtual |
Determines if swapchain image. That is, an image used as the root render target.
Implements impeller::TextureSourceVK.
Definition at line 57 of file khr_swapchain_image_vk.cc.
| bool impeller::KHRSwapchainImageVK::IsValid | ( | ) | const |
Definition at line 34 of file khr_swapchain_image_vk.cc.