An image represents a 2D file that has data about each pixel in the image.
More...
#include <Image.h>
Inherits Fling::Resource.
An image represents a 2D file that has data about each pixel in the image.
◆ Image()
Fling::Image::Image |
( |
Guid |
t_ID, |
|
|
void * |
t_Data = nullptr |
|
) |
| |
|
explicit |
◆ ~Image()
◆ CopyBufferToImage()
void Fling::Image::CopyBufferToImage |
( |
VkBuffer |
t_Buffer | ) |
|
|
private |
◆ CreateImageView()
void Fling::Image::CreateImageView |
( |
| ) |
|
|
private |
Create a Image View object that is needed to sample this image from the swap chain.
◆ CreateTextureSampler()
void Fling::Image::CreateTextureSampler |
( |
| ) |
|
|
private |
◆ GetChannels()
FORCEINLINE INT32 Fling::Image::GetChannels |
( |
| ) |
const |
|
inline |
◆ GetHeight()
FORCEINLINE UINT32 Fling::Image::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetImageSize()
UINT64 Fling::Image::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
◆ GetSampler()
FORCEINLINE const VkSampler& Fling::Image::GetSampler |
( |
| ) |
const |
|
inline |
◆ GetVkImage()
FORCEINLINE const VkImage& Fling::Image::GetVkImage |
( |
| ) |
const |
|
inline |
◆ GetVkImageView()
FORCEINLINE const VkImageView& Fling::Image::GetVkImageView |
( |
| ) |
const |
|
inline |
◆ GetWidth()
FORCEINLINE UINT32 Fling::Image::GetWidth |
( |
| ) |
const |
|
inline |
◆ LoadVulkanImage()
void Fling::Image::LoadVulkanImage |
( |
| ) |
|
|
private |
Loads the Vulkan resources needed for this image.
◆ Release()
void Fling::Image::Release |
( |
| ) |
|
Release the Vulkan resources of this image.
◆ m_Channels
INT32 Fling::Image::m_Channels = 0 |
|
private |
The color channels of this image.
◆ m_Height
UINT32 Fling::Image::m_Height = 0 |
|
private |
◆ m_ImageView
VkImageView Fling::Image::m_ImageView |
|
private |
The view of this image for the swap chain.
◆ m_TextureSampler
VkSampler Fling::Image::m_TextureSampler |
|
private |
◆ m_VkMemory
VkDeviceMemory Fling::Image::m_VkMemory |
|
private |
The Vulkan memory resource for this image.
◆ m_vVkImage
VkImage Fling::Image::m_vVkImage |
|
private |
◆ m_Width
UINT32 Fling::Image::m_Width = 0 |
|
private |
The documentation for this class was generated from the following files: