![]() |
Fling Engine
0.00.1
Fling Engine is a game engine written in Vulkan
|
Loads image R16G16B16_SFLOAT file formats exmplae file format : .hdr. More...
#include <HDRImage.h>
Inherits Fling::Resource.
Public Member Functions | |
| HDRImage (Guid t_ID, LogicalDevice *t_dev, void *t_Data=nullptr) | |
| virtual | ~HDRImage () |
| FORCEINLINE UINT32 | GetWidth () const |
| FORCEINLINE UINT32 | GetHeight () const |
| FORCEINLINE INT32 | GetChannels () const |
| FORCEINLINE UINT32 | GetMipLevels () const |
| FORCEINLINE const VkImage & | GetVkImage () const |
| FORCEINLINE const VkImageView & | GetVkImageView () const |
| FORCEINLINE const VkSampler & | GetSampler () const |
| FORCEINLINE VkDescriptorImageInfo * | GetDescriptorInfo () |
| FORCEINLINE const VkFormat & | GetVkImageFormat () const |
| UINT64 | GetImageSize () const |
| Get the Image Size object Multiply by 2 * 3 because there are 3 channels that are 2 bytes each Each channel is represented as a signed 16 (bit) float. More... | |
| const float * | GetPixelData () const |
| Get the Pixel Data as signed floats. More... | |
| void | Release () |
Public Member Functions inherited from Fling::Resource | |
| Resource (Fling::Guid t_ID) | |
| virtual | ~Resource ()=default |
| Fling::Guid_Handle | GetGuidHandle () const |
| Get GUID handle (just an int) for this resources guid. More... | |
| const std::string & | GetGuidString () const |
| Get the human-readable string representation of this GUID. More... | |
| std::string | GetFilepathReleativeToAssets () const |
| Returns the full file path that is relative to the assets path based on the GUID of this resource. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Fling::HDRImage > | Create (Guid t_ID, LogicalDevice *t_dev, void *t_Data=nullptr) |
Private Member Functions | |
| void | LoadVulkanImage () |
| void | CreateImageView () |
| void | CreateTextureSampler () |
| void | CopyBufferToImage (VkBuffer t_Buffer) |
| void | GenerateMipMaps (VkFormat t_ImageFormat) |
Private Attributes | |
| const LogicalDevice * | m_Device |
| VkImage | m_Image |
| VkImageView | m_ImageView |
| VkSampler | m_TextureSampler |
| VkDeviceMemory | m_Memory |
| VkDescriptorImageInfo | m_ImageInfo = {} |
| float * | m_PixelData |
| VkFormat | m_Format = VK_FORMAT_R16G16B16_SFLOAT |
| UINT32 | m_Width = 0 |
| UINT32 | m_Height = 0 |
| UINT32 | m_MipLevels = 0 |
| INT32 | m_Channels = 0 |
Additional Inherited Members | |
Protected Attributes inherited from Fling::Resource | |
| Fling::Guid | m_Guid |
| std::string | m_HumanReadableName |
Loads image R16G16B16_SFLOAT file formats exmplae file format : .hdr.
|
explicit |
|
virtual |
|
private |
|
static |
|
private |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
Get the Image Size object Multiply by 2 * 3 because there are 3 channels that are 2 bytes each Each channel is represented as a signed 16 (bit) float.
|
inline |
|
inline |
Get the Pixel Data as signed floats.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
| void Fling::HDRImage::Release | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.13