|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
Holds Vulkan handles and metadata for a loaded texture resource. More...
#include <ResourceManager.hpp>
Public Attributes | |
| VkImage | image = VK_NULL_HANDLE |
| Raw Vulkan image object. | |
| VkDeviceMemory | memory = VK_NULL_HANDLE |
| Allocated device memory backing the image. | |
| VkImageView | imageView = VK_NULL_HANDLE |
| View to read image data in shaders. | |
| VkSampler | sampler = VK_NULL_HANDLE |
| Sampler specifying filtering and wrapping modes. | |
| VkDescriptorSet | descriptorSet = VK_NULL_HANDLE |
| Descriptor set updated for shader binding. | |
| VkFormat | format = VK_FORMAT_R8G8B8A8_SRGB |
| Vulkan image format (e.g. UNORM or SRGB). | |
| int | width = 0 |
| Width in pixels. | |
| int | height = 0 |
| Height in pixels. | |
| std::string | path |
| Filepath from which texture was loaded. | |
| TextureFilterMode | filterMode = TextureFilterMode::Bilinear |
| Filter mode used for this texture. | |
Holds Vulkan handles and metadata for a loaded texture resource.
| VkDescriptorSet Texture::descriptorSet = VK_NULL_HANDLE |
Descriptor set updated for shader binding.
| TextureFilterMode Texture::filterMode = TextureFilterMode::Bilinear |
Filter mode used for this texture.
| VkFormat Texture::format = VK_FORMAT_R8G8B8A8_SRGB |
Vulkan image format (e.g. UNORM or SRGB).
| int Texture::height = 0 |
Height in pixels.
| VkImage Texture::image = VK_NULL_HANDLE |
Raw Vulkan image object.
| VkImageView Texture::imageView = VK_NULL_HANDLE |
View to read image data in shaders.
| VkDeviceMemory Texture::memory = VK_NULL_HANDLE |
Allocated device memory backing the image.
| std::string Texture::path |
Filepath from which texture was loaded.
| VkSampler Texture::sampler = VK_NULL_HANDLE |
Sampler specifying filtering and wrapping modes.
| int Texture::width = 0 |
Width in pixels.