Toast Engine
Loading...
Searching...
No Matches
renderer::CubemapTarget Class Reference

Public Member Functions

void create (const VulkanCore &core, vk::Format format, uint32_t size, uint32_t mip_levels, std::string_view debug_name, vk::ImageUsageFlags extra_usage={}, bool with_face_views=true)
void transition (vk::CommandBuffer cmd, sync::Usage next)
void setUsage (sync::Usage usage) noexcept
 For code that transitioned the whole image itself like the vulkan_common upload helpers.
auto faceView (uint32_t mip, uint32_t face) const -> vk::ImageView
auto cubeView () const -> vk::ImageView
auto image () const -> vk::Image
auto size () const noexcept -> uint32_t
auto mipSize (uint32_t mip) const noexcept -> uint32_t
auto mipLevels () const noexcept -> uint32_t
auto usage () const noexcept -> sync::Usage
auto isReady () const noexcept -> bool

Static Public Attributes

static constexpr uint32_t k_faces = 6

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