Toast Engine
Loading...
Searching...
No Matches
renderer::VulkanTexture Class Reference
Inheritance diagram for renderer::VulkanTexture:
Collaboration diagram for renderer::VulkanTexture:

Classes

struct  Params

Public Member Functions

void create (const VulkanCore &core, Params params, std::string_view debug_name={})
void destroy ()
auto getImage () const -> vk::Image
auto getView () const -> vk::ImageView
auto getFormat () const -> vk::Format
auto generation () const noexcept -> uint64_t
 Unique per create() so a descriptor cache notices a recreated view that reuses a destroyed handle value.
Public Member Functions inherited from renderer::IVulkanResource
void markUploading ()
void markReady ()
void markFailed (UploadState reason)
auto isReady () const -> bool
auto hasFailed () const -> bool
auto state () const -> UploadState

Additional Inherited Members

Public Types inherited from renderer::IVulkanResource
enum class  UploadState : std::uint8_t { uploading , ready , failed_load , failed_gpu }

The documentation for this class was generated from the following files: