Flutter Engine
The Flutter Engine
|
#include <texture_vk.h>
Public Member Functions | |
TextureVK (std::weak_ptr< Context > context, std::shared_ptr< TextureSourceVK > source) | |
~TextureVK () override | |
vk::Image | GetImage () const |
vk::ImageView | GetImageView () const |
vk::ImageView | GetRenderTargetView () const |
bool | SetLayout (const BarrierVK &barrier) const |
vk::ImageLayout | SetLayoutWithoutEncoding (vk::ImageLayout layout) const |
vk::ImageLayout | GetLayout () const |
std::shared_ptr< const TextureSourceVK > | GetTextureSource () const |
ISize | GetSize () const override |
void | SetMipMapGenerated () |
bool | IsSwapchainImage () const |
std::shared_ptr< SamplerVK > | GetImmutableSamplerVariant (const SamplerVK &sampler) const |
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 |
Public Member Functions inherited from impeller::Texture | |
virtual | ~Texture () |
virtual void | SetLabel (std::string_view label)=0 |
bool | SetContents (const uint8_t *contents, size_t length, size_t slice=0, bool is_opaque=false) |
bool | SetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice=0, bool is_opaque=false) |
virtual bool | IsValid () const =0 |
virtual ISize | GetSize () const =0 |
bool | IsOpaque () const |
size_t | GetMipCount () const |
const TextureDescriptor & | GetTextureDescriptor () const |
void | SetCoordinateSystem (TextureCoordinateSystem coordinate_system) |
TextureCoordinateSystem | GetCoordinateSystem () const |
virtual Scalar | GetYCoordScale () const |
bool | NeedsMipmapGeneration () const |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::BackendCast< TextureVK, Texture > | |
static TextureVK & | Cast (Texture &base) |
static const TextureVK & | Cast (const Texture &base) |
static TextureVK * | Cast (Texture *base) |
static const TextureVK * | Cast (const Texture *base) |
Protected Member Functions inherited from impeller::Texture | |
Texture (TextureDescriptor desc) | |
virtual bool | OnSetContents (const uint8_t *contents, size_t length, size_t slice)=0 |
virtual bool | OnSetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice)=0 |
Protected Attributes inherited from impeller::Texture | |
bool | mipmap_generated_ = false |
Definition at line 19 of file texture_vk.h.
impeller::TextureVK::TextureVK | ( | std::weak_ptr< Context > | context, |
std::shared_ptr< TextureSourceVK > | source | ||
) |
Definition at line 14 of file texture_vk.cc.
|
overridedefault |
SharedHandleVK< vk::Framebuffer > impeller::TextureVK::GetCachedFramebuffer | ( | ) | const |
Retrieve the last framebuffer object used with this texture.
May be nullptr if no previous framebuffer existed.
Definition at line 187 of file texture_vk.cc.
SharedHandleVK< vk::RenderPass > impeller::TextureVK::GetCachedRenderPass | ( | ) | const |
Retrieve the last render pass object used with this texture.
May be nullptr if no previous render pass existed.
Definition at line 191 of file texture_vk.cc.
vk::Image impeller::TextureVK::GetImage | ( | ) | const |
Definition at line 147 of file texture_vk.cc.
vk::ImageView impeller::TextureVK::GetImageView | ( | ) | const |
Definition at line 151 of file texture_vk.cc.
std::shared_ptr< SamplerVK > impeller::TextureVK::GetImmutableSamplerVariant | ( | const SamplerVK & | sampler | ) | const |
Definition at line 203 of file texture_vk.cc.
vk::ImageLayout impeller::TextureVK::GetLayout | ( | ) | const |
Definition at line 169 of file texture_vk.cc.
vk::ImageView impeller::TextureVK::GetRenderTargetView | ( | ) | const |
Definition at line 173 of file texture_vk.cc.
|
overridevirtual |
Implements impeller::Texture.
Definition at line 143 of file texture_vk.cc.
std::shared_ptr< const TextureSourceVK > impeller::TextureVK::GetTextureSource | ( | ) | const |
Definition at line 155 of file texture_vk.cc.
bool impeller::TextureVK::IsSwapchainImage | ( | ) | const |
Definition at line 199 of file texture_vk.cc.
void impeller::TextureVK::SetCachedFramebuffer | ( | const SharedHandleVK< vk::Framebuffer > & | framebuffer | ) |
Store the last framebuffer object used with this texture.
This field is only set if this texture is used as the resolve texture of a render pass. By construction, this framebuffer should be compatible with any future render passes.
Definition at line 177 of file texture_vk.cc.
void impeller::TextureVK::SetCachedRenderPass | ( | const SharedHandleVK< vk::RenderPass > & | render_pass | ) |
Store the last render pass object used with this texture.
This field is only set if this texture is used as the resolve texture of a render pass. By construction, this framebuffer should be compatible with any future render passes.
Definition at line 182 of file texture_vk.cc.
bool impeller::TextureVK::SetLayout | ( | const BarrierVK & | barrier | ) | const |
Definition at line 159 of file texture_vk.cc.
vk::ImageLayout impeller::TextureVK::SetLayoutWithoutEncoding | ( | vk::ImageLayout | layout | ) | const |
Definition at line 163 of file texture_vk.cc.
void impeller::TextureVK::SetMipMapGenerated | ( | ) |
Definition at line 195 of file texture_vk.cc.