Flutter Engine
The Flutter Engine
|
Public Member Functions | |
AllocatedTextureSourceVK (std::weak_ptr< ResourceManagerVK > resource_manager, const TextureDescriptor &desc, VmaAllocator allocator, vk::Device device, bool supports_memoryless_textures) | |
~AllocatedTextureSourceVK ()=default | |
bool | IsValid () const |
vk::Image | GetImage () const override |
Get the image handle for this texture source. More... | |
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... | |
bool | IsSwapchainImage () const override |
Determines if swapchain image. That is, an image used as the root render target. More... | |
Public Member Functions inherited from impeller::TextureSourceVK | |
virtual | ~TextureSourceVK () |
const TextureDescriptor & | GetTextureDescriptor () const |
Gets the texture descriptor for this image source. More... | |
virtual vk::Image | GetImage () const =0 |
Get the image handle for this texture source. More... | |
virtual vk::ImageView | GetImageView () const =0 |
Retrieve the image view used for sampling/blitting/compute with this texture source. More... | |
virtual vk::ImageView | GetRenderTargetView () const =0 |
Retrieve the image view used for render target attachments with this texture 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... | |
virtual bool | IsSwapchainImage () const =0 |
Determines if swapchain image. That is, an image used as the root render target. 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 | |
Protected Member Functions inherited from impeller::TextureSourceVK | |
TextureSourceVK (TextureDescriptor desc) | |
Protected Attributes inherited from impeller::TextureSourceVK | |
const TextureDescriptor | desc_ |
Definition at line 280 of file allocator_vk.cc.
|
inline |
Definition at line 282 of file allocator_vk.cc.
|
default |
|
inlineoverridevirtual |
Get the image handle for this texture source.
Implements impeller::TextureSourceVK.
Definition at line 390 of file allocator_vk.cc.
|
inlineoverridevirtual |
Retrieve the image view used for sampling/blitting/compute with this texture source.
Implements impeller::TextureSourceVK.
Definition at line 392 of file allocator_vk.cc.
|
inlineoverridevirtual |
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 396 of file allocator_vk.cc.
|
inlineoverridevirtual |
Determines if swapchain image. That is, an image used as the root render target.
Implements impeller::TextureSourceVK.
Definition at line 400 of file allocator_vk.cc.
|
inline |
Definition at line 388 of file allocator_vk.cc.