23 std::shared_ptr<TextureSourceVK> source);
33 uint32_t array_layer = 0)
const;
60 uint32_t mip_level = 0u,
67 uint32_t mip_level = 0u,
68 uint32_t slice = 0u)
const;
71 std::weak_ptr<Context> context_;
72 std::shared_ptr<TextureSourceVK> source_;
73 bool has_validation_layers_ =
false;
76 void SetLabel(std::string_view label)
override;
79 void SetLabel(std::string_view label, std::string_view trailing)
override;
82 bool OnSetContents(
const uint8_t* contents,
84 size_t slice)
override;
87 bool OnSetContents(std::shared_ptr<const fml::Mapping> mapping,
88 size_t slice)
override;
91 bool IsValid()
const override;
vk::ImageView GetImageView() const
std::shared_ptr< const TextureSourceVK > GetTextureSource() const
bool IsSwapchainImage() const
void SetMipMapGenerated()
vk::ImageLayout SetLayoutWithoutEncoding(vk::ImageLayout layout) const
std::shared_ptr< SamplerVK > GetImmutableSamplerVariant(const SamplerVK &sampler) const
vk::ImageView GetRenderTargetView(uint32_t mip_level=0, uint32_t array_layer=0) const
ISize GetSize() const override
FramebufferAndRenderPass GetCachedFrameData(SampleCount sample_count, uint32_t mip_level=0u, uint32_t slice=0u) const
bool SetLayout(const BarrierVK &barrier) const
void SetCachedFrameData(const FramebufferAndRenderPass &data, SampleCount sample_count, uint32_t mip_level=0u, uint32_t slice=0u)
vk::ImageLayout GetLayout() const
vk::Image GetImage() const