|
| ShadowCube (void) |
|
| ~ShadowCube (void)=default |
|
VkImageView | cube_2d_view () const |
|
std::span< const VkImageView > | frame_views () const |
|
bool | init (VkDevice dev, nngn::DeviceMemory *dev_mem, VkCommandBuffer cmd, std::size_t n_frames, u32 n, VkExtent3D extent) |
|
void | destroy (VkDevice dev, nngn::DeviceMemory *dev_mem) |
|
Public Member Functions inherited from anonymous_namespace{vulkan.cpp}::ShadowMap |
| ShadowMap ()=default |
|
u32 | size () const |
|
std::span< const VkImageView > | layer_views () const |
|
std::span< const VkImageView > | frame_views () const |
|
void | set_size (u32 s) |
|
bool | init (VkDevice dev, nngn::DeviceMemory *dev_mem, VkCommandBuffer cmd, std::size_t n_frames, u32 n, VkExtent3D extent) |
|
void | destroy (VkDevice dev, nngn::DeviceMemory *dev_mem) |
|
VkImageView | view () const |
|
bool | init (VkDevice dev, nngn::DeviceMemory *dev_mem, VkCommandBuffer cmd, VkImageCreateFlags flags, VkFormat format, VkExtent3D extent, std::uint32_t mip_levels, std::uint32_t n_layers, VkImageUsageFlags usage, VkImageAspectFlags aspects, VkImageLayout layout, VkImageViewType view_type, VkPipelineStageFlags src_stage, VkPipelineStageFlags dst_stage, VkAccessFlags src_mask, VkAccessFlags dst_mask) |
|
void | destroy (VkDevice dev, nngn::DeviceMemory *dev_mem) |
|
VkImage | id () const |
|
VkDeviceMemory | mem () const |
|
void | destroy (VkDevice dev, DeviceMemory *dev_mem) |
|
template<VkMemoryPropertyFlags f> |
bool | init (VkDevice dev, DeviceMemory *dev_mem, VkImageCreateFlags flags, VkImageType type, VkFormat format, VkExtent3D extent, std::uint32_t mip_levels, std::uint32_t n_layers, VkSampleCountFlagBits n_samples, VkImageTiling tiling, VkImageUsageFlags usage) |
|
bool | init_mipmaps (VkCommandBuffer cmd, VkExtent3D extent, std::uint32_t mip_levels, std::uint32_t base_layer, std::uint32_t n_layers) const |
|
bool | create_view (VkDevice dev, VkImageViewType type, VkFormat format, VkImageAspectFlags aspect_flags, std::uint32_t mip_levels, std::uint32_t base_layer, std::uint32_t n_layers, VkImageView *p) const |
|
void | transition_layout (VkCommandBuffer cmd, VkPipelineStageFlags src_stage, VkPipelineStageFlags dst_stage, VkAccessFlags src_mask, VkAccessFlags dst_mask, VkImageLayout src, VkImageLayout dst, const VkImageSubresourceRange &range) const |
|