Class for texture.
More...
#include <Texture.hpp>
Class for texture.
Definition at line 20 of file Texture.hpp.
◆ Texture() [1/4]
| ven::Texture::Texture |
( |
Device & | device, |
|
|
const std::string & | textureFilepath ) |
◆ Texture() [2/4]
| ven::Texture::Texture |
( |
Device & | device, |
|
|
VkFormat | format, |
|
|
VkExtent3D | extent, |
|
|
VkImageUsageFlags | usage, |
|
|
VkSampleCountFlagBits | sampleCount ) |
◆ ~Texture()
| ven::Texture::~Texture |
( |
| ) |
|
◆ Texture() [3/4]
| ven::Texture::Texture |
( |
const Texture & | | ) |
|
|
delete |
◆ Texture() [4/4]
| ven::Texture::Texture |
( |
Texture && | | ) |
|
|
delete |
◆ createTextureImage()
| void ven::Texture::createTextureImage |
( |
const std::string & | filepath | ) |
|
|
private |
◆ createTextureImageView()
| void ven::Texture::createTextureImageView |
( |
VkImageViewType | viewType | ) |
|
|
private |
◆ createTextureSampler()
| void ven::Texture::createTextureSampler |
( |
| ) |
|
|
private |
◆ getExtent()
| VkExtent3D ven::Texture::getExtent |
( |
| ) |
const |
|
inlinenodiscard |
◆ getFormat()
| VkFormat ven::Texture::getFormat |
( |
| ) |
const |
|
inlinenodiscard |
◆ getImage()
| VkImage ven::Texture::getImage |
( |
| ) |
const |
|
inlinenodiscard |
◆ getImageInfo()
| VkDescriptorImageInfo ven::Texture::getImageInfo |
( |
| ) |
const |
|
inlinenodiscard |
◆ getImageLayout()
| VkImageLayout ven::Texture::getImageLayout |
( |
| ) |
const |
|
inlinenodiscard |
◆ getImageView()
| VkImageView ven::Texture::getImageView |
( |
| ) |
const |
|
inlinenodiscard |
◆ imageView()
| VkImageView ven::Texture::imageView |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ sampler()
| VkSampler ven::Texture::sampler |
( |
| ) |
const |
|
inlinenodiscard |
◆ transitionLayout()
| void ven::Texture::transitionLayout |
( |
VkCommandBuffer | commandBuffer, |
|
|
VkImageLayout | oldLayout, |
|
|
VkImageLayout | newLayout ) const |
◆ updateDescriptor()
| void ven::Texture::updateDescriptor |
( |
| ) |
|
◆ m_descriptor
| VkDescriptorImageInfo ven::Texture::m_descriptor {} |
|
private |
◆ m_device
| Device& ven::Texture::m_device |
|
private |
◆ m_extent
| VkExtent3D ven::Texture::m_extent {} |
|
private |
◆ m_format
| VkFormat ven::Texture::m_format |
|
private |
◆ m_layerCount
| uint32_t ven::Texture::m_layerCount {1} |
|
private |
◆ m_mipLevels
| uint32_t ven::Texture::m_mipLevels {1} |
|
private |
◆ m_textureImage
| VkImage ven::Texture::m_textureImage = nullptr |
|
private |
◆ m_textureImageMemory
| VkDeviceMemory ven::Texture::m_textureImageMemory = nullptr |
|
private |
◆ m_textureImageView
| VkImageView ven::Texture::m_textureImageView = nullptr |
|
private |
◆ m_textureLayout
| VkImageLayout ven::Texture::m_textureLayout {} |
|
private |
◆ m_textureSampler
| VkSampler ven::Texture::m_textureSampler = nullptr |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/VEngine/VEngine/include/VEngine/Gfx/Texture.hpp
- /home/runner/work/VEngine/VEngine/src/Gfx/texture.cpp