nngn
Loading...
Searching...
No Matches
anonymous_namespace{vulkan.cpp}::ShadowCube Class Reference
Inheritance diagram for anonymous_namespace{vulkan.cpp}::ShadowCube:
Collaboration diagram for anonymous_namespace{vulkan.cpp}::ShadowCube:

Public Member Functions

 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)
 
- Public Member Functions inherited from anonymous_namespace{vulkan.cpp}::TexArray
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)
 
- Public Member Functions inherited from nngn::Image
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
 

Private Attributes

VkImageView m_cube_2d_view = {}
 
std::vector< VkImageView > m_frame_views = {}
 

Additional Inherited Members

- Protected Member Functions inherited from anonymous_namespace{vulkan.cpp}::ShadowMap
 ShadowMap (u32 size_)
 
bool init (VkDevice dev, nngn::DeviceMemory *dev_mem, VkCommandBuffer cmd, std::size_t n_frames, u32 n, VkExtent3D extent, VkImageCreateFlags flags, VkImageViewType view_type)
 
bool init_layer_views (VkDevice dev, u32 n, u32 n_layers_per_view, VkImageViewType type, VkImageAspectFlags aspects, std::vector< VkImageView > *v)
 

Constructor & Destructor Documentation

◆ ShadowCube()

anonymous_namespace{vulkan.cpp}::ShadowCube::ShadowCube ( void )
inline

◆ ~ShadowCube()

anonymous_namespace{vulkan.cpp}::ShadowCube::~ShadowCube ( void )
default

Member Function Documentation

◆ cube_2d_view()

VkImageView anonymous_namespace{vulkan.cpp}::ShadowCube::cube_2d_view ( ) const
inline
Here is the caller graph for this function:

◆ destroy()

void anonymous_namespace{vulkan.cpp}::ShadowCube::destroy ( VkDevice dev,
nngn::DeviceMemory * dev_mem )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ frame_views()

std::span< const VkImageView > anonymous_namespace{vulkan.cpp}::ShadowCube::frame_views ( ) const
inline
Here is the caller graph for this function:

◆ init()

bool anonymous_namespace{vulkan.cpp}::ShadowCube::init ( VkDevice dev,
nngn::DeviceMemory * dev_mem,
VkCommandBuffer cmd,
std::size_t n_frames,
u32 n,
VkExtent3D extent )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_cube_2d_view

VkImageView anonymous_namespace{vulkan.cpp}::ShadowCube::m_cube_2d_view = {}
private

◆ m_frame_views

std::vector<VkImageView> anonymous_namespace{vulkan.cpp}::ShadowCube::m_frame_views = {}
private

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