An image represents a 2D file that has data about each pixel in the image.
More...
#include <Texture.h>
Inherits Fling::Resource.
An image represents a 2D file that has data about each pixel in the image.
◆ Texture()
| Fling::Texture::Texture |
( |
Guid |
t_ID | ) |
|
|
explicit |
◆ ~Texture()
| Fling::Texture::~Texture |
( |
| ) |
|
|
virtual |
◆ CopyBufferToImage()
| void Fling::Texture::CopyBufferToImage |
( |
VkBuffer |
t_Buffer | ) |
|
|
private |
◆ Create()
◆ CreateImageView()
| void Fling::Texture::CreateImageView |
( |
| ) |
|
|
private |
Create a Image View object that is needed to sample this image from the swap chain.
◆ CreateTextureSampler()
| void Fling::Texture::CreateTextureSampler |
( |
| ) |
|
|
private |
◆ GenerateMipMaps()
| void Fling::Texture::GenerateMipMaps |
( |
VkFormat |
imageFormat | ) |
|
|
private |
◆ GetChannels()
| FORCEINLINE INT32 Fling::Texture::GetChannels |
( |
| ) |
const |
|
inline |
◆ GetDescriptorInfo()
| FORCEINLINE VkDescriptorImageInfo* Fling::Texture::GetDescriptorInfo |
( |
| ) |
|
|
inline |
◆ GetHeight()
| FORCEINLINE UINT32 Fling::Texture::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetImageSize()
| UINT64 Fling::Texture::GetImageSize |
( |
| ) |
const |
|
inline |
Get the Image Size object (width * height * 4) Multiply by 4 because the pixel is laid out row by row with 4 bytes per pixel.
- Returns
- INT32
◆ GetMipLevels()
| FORCEINLINE UINT32 Fling::Texture::GetMipLevels |
( |
| ) |
const |
|
inline |
◆ GetPixelData()
| stbi_uc* Fling::Texture::GetPixelData |
( |
| ) |
const |
|
inline |
Get the Pixel Data object.
- Returns
- stbi_uc*
◆ GetSampler()
| FORCEINLINE const VkSampler& Fling::Texture::GetSampler |
( |
| ) |
const |
|
inline |
◆ GetVkImage()
| FORCEINLINE const VkImage& Fling::Texture::GetVkImage |
( |
| ) |
const |
|
inline |
◆ GetVkImageFormat()
| FORCEINLINE const VkFormat& Fling::Texture::GetVkImageFormat |
( |
| ) |
const |
|
inline |
◆ GetVkImageView()
| FORCEINLINE const VkImageView& Fling::Texture::GetVkImageView |
( |
| ) |
const |
|
inline |
◆ GetWidth()
| FORCEINLINE UINT32 Fling::Texture::GetWidth |
( |
| ) |
const |
|
inline |
◆ LoadVulkanImage()
| void Fling::Texture::LoadVulkanImage |
( |
| ) |
|
|
private |
Loads the Vulkan resources needed for this image.
◆ Release()
| void Fling::Texture::Release |
( |
| ) |
|
Release the Vulkan resources of this image.
◆ m_Channels
| INT32 Fling::Texture::m_Channels = 0 |
|
private |
The color channels of this image.
◆ m_Format
| VkFormat Fling::Texture::m_Format = VK_FORMAT_R8G8B8A8_UNORM |
|
private |
◆ m_Height
| UINT32 Fling::Texture::m_Height = 0 |
|
private |
◆ m_ImageInfo
| VkDescriptorImageInfo Fling::Texture::m_ImageInfo {} |
|
private |
◆ m_ImageView
| VkImageView Fling::Texture::m_ImageView |
|
private |
The view of this image for the swap chain.
◆ m_MipLevels
| UINT32 Fling::Texture::m_MipLevels = 0 |
|
private |
◆ m_PixelData
| stbi_uc* Fling::Texture::m_PixelData |
|
private |
◆ m_TextureSampler
| VkSampler Fling::Texture::m_TextureSampler |
|
private |
◆ m_VkMemory
| VkDeviceMemory Fling::Texture::m_VkMemory |
|
private |
The Vulkan memory resource for this image.
◆ m_vVkImage
| VkImage Fling::Texture::m_vVkImage |
|
private |
◆ m_Width
| UINT32 Fling::Texture::m_Width = 0 |
|
private |
The documentation for this class was generated from the following files: