Interface for drawable texture.
Definition texture.hpp:15
virtual auto descriptor_info() const -> vk::DescriptorImageInfo=0
virtual auto get_size() const -> glm::ivec2=0
virtual auto get_image() const -> vk::ImageView=0
Concrete drawable Texture.
Definition texture.hpp:31
virtual void overwrite(kvf::Bitmap const &bitmap)=0
Write bitmap to image.
virtual auto load_and_write(std::span< std::byte const > compressed_image) -> bool=0
Load a compressed bitmap and write to image.
auto get_uv(TileId const id) const -> kvf::UvRect
Get the UV coordinates for a given Tile ID.
Definition texture.hpp:48
Wraps a RenderTarget as a texture.
Definition texture.hpp:55
RenderTexture(gsl::not_null< kvf::RenderPass const * > render_pass)
auto is_ready() const -> bool final
Check if resource is ready to use.
Texture Sampler metadata.
Definition texture.hpp:24