nngn
Loading...
Searching...
No Matches
nngn::Image Struct Reference

#include <resource.h>

Inheritance diagram for nngn::Image:

Public Member Functions

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 Member Functions

bool init (VkDevice dev, 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)
 

Private Attributes

VkImage h = {}
 
VkDeviceMemory hm = {}
 

Member Function Documentation

◆ create_view()

bool nngn::Image::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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ destroy()

void nngn::Image::destroy ( VkDevice dev,
DeviceMemory * dev_mem )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ id()

VkImage nngn::Image::id ( ) const
inline
Here is the caller graph for this function:

◆ init() [1/2]

template<VkMemoryPropertyFlags f>
bool nngn::Image::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 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init() [2/2]

bool nngn::Image::init ( VkDevice dev,
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 )
private
Here is the call graph for this function:

◆ init_mipmaps()

bool nngn::Image::init_mipmaps ( VkCommandBuffer cmd,
VkExtent3D extent,
std::uint32_t mip_levels,
std::uint32_t base_layer,
std::uint32_t n_layers ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mem()

VkDeviceMemory nngn::Image::mem ( ) const
inline
Here is the caller graph for this function:

◆ transition_layout()

void nngn::Image::transition_layout ( VkCommandBuffer cmd,
VkPipelineStageFlags src_stage,
VkPipelineStageFlags dst_stage,
VkAccessFlags src_mask,
VkAccessFlags dst_mask,
VkImageLayout src,
VkImageLayout dst,
const VkImageSubresourceRange & range ) const
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ h

VkImage nngn::Image::h = {}
private

◆ hm

VkDeviceMemory nngn::Image::hm = {}
private

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