#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 | SetCachedFrameData (const FramebufferAndRenderPass &data, SampleCount sample_count) |
const FramebufferAndRenderPass & | GetCachedFrameData (SampleCount sample_count) const |
![]() | |
virtual | ~Texture () |
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) |
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 TextureVK & | Cast (Texture &base) |
static const TextureVK & | Cast (const Texture &base) |
static TextureVK * | Cast (Texture *base) |
static const TextureVK * | Cast (const Texture *base) |
![]() | |
Texture (TextureDescriptor desc) | |
![]() | |
bool | mipmap_generated_ = false |
Definition at line 20 of file texture_vk.h.
impeller::TextureVK::TextureVK | ( | std::weak_ptr< Context > | context, |
std::shared_ptr< TextureSourceVK > | source | ||
) |
|
overridedefault |
const FramebufferAndRenderPass & impeller::TextureVK::GetCachedFrameData | ( | SampleCount | sample_count | ) | const |
Retrieve the last framebuffer and render pass object used with this texture.
An empty FramebufferAndRenderPass is returned if there is no cached data for a particular sample count.
Definition at line 205 of file texture_vk.cc.
Referenced by impeller::testing::TEST_P().
vk::Image impeller::TextureVK::GetImage | ( | ) | const |
Definition at line 170 of file texture_vk.cc.
vk::ImageView impeller::TextureVK::GetImageView | ( | ) | const |
Definition at line 174 of file texture_vk.cc.
std::shared_ptr< SamplerVK > impeller::TextureVK::GetImmutableSamplerVariant | ( | const SamplerVK & | sampler | ) | const |
Definition at line 218 of file texture_vk.cc.
References impeller::SamplerVK::CreateVariantForConversion().
vk::ImageLayout impeller::TextureVK::GetLayout | ( | ) | const |
Definition at line 192 of file texture_vk.cc.
vk::ImageView impeller::TextureVK::GetRenderTargetView | ( | ) | const |
Definition at line 196 of file texture_vk.cc.
|
overridevirtual |
Implements impeller::Texture.
Definition at line 166 of file texture_vk.cc.
References impeller::Texture::GetTextureDescriptor(), and impeller::TextureDescriptor::size.
std::shared_ptr< const TextureSourceVK > impeller::TextureVK::GetTextureSource | ( | ) | const |
Definition at line 178 of file texture_vk.cc.
bool impeller::TextureVK::IsSwapchainImage | ( | ) | const |
Definition at line 214 of file texture_vk.cc.
void impeller::TextureVK::SetCachedFrameData | ( | const FramebufferAndRenderPass & | data, |
SampleCount | sample_count | ||
) |
Store the last framebuffer and render pass object used with this texture.
This method is only called 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 200 of file texture_vk.cc.
References data.
bool impeller::TextureVK::SetLayout | ( | const BarrierVK & | barrier | ) | const |
Definition at line 182 of file texture_vk.cc.
vk::ImageLayout impeller::TextureVK::SetLayoutWithoutEncoding | ( | vk::ImageLayout | layout | ) | const |
Definition at line 186 of file texture_vk.cc.
void impeller::TextureVK::SetMipMapGenerated | ( | ) |