#include <resource.h>
|
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 |
|
|
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) |
|
◆ 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 |
◆ destroy()
void nngn::Image::destroy |
( |
VkDevice | dev, |
|
|
DeviceMemory * | dev_mem ) |
◆ id()
◆ 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 ) |
◆ 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 |
◆ 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 |
◆ mem()
VkDeviceMemory nngn::Image::mem |
( |
| ) |
const |
|
inline |
◆ 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 |
◆ hm
VkDeviceMemory nngn::Image::hm = {} |
|
private |
The documentation for this struct was generated from the following files: