Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
Texture Struct Reference

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.

Detailed Description

Holds Vulkan handles and metadata for a loaded texture resource.

Member Data Documentation

◆ descriptorSet

VkDescriptorSet Texture::descriptorSet = VK_NULL_HANDLE

Descriptor set updated for shader binding.

◆ filterMode

Filter mode used for this texture.

◆ format

VkFormat Texture::format = VK_FORMAT_R8G8B8A8_SRGB

Vulkan image format (e.g. UNORM or SRGB).

◆ height

int Texture::height = 0

Height in pixels.

◆ image

VkImage Texture::image = VK_NULL_HANDLE

Raw Vulkan image object.

◆ imageView

VkImageView Texture::imageView = VK_NULL_HANDLE

View to read image data in shaders.

◆ memory

VkDeviceMemory Texture::memory = VK_NULL_HANDLE

Allocated device memory backing the image.

◆ path

std::string Texture::path

Filepath from which texture was loaded.

◆ sampler

VkSampler Texture::sampler = VK_NULL_HANDLE

Sampler specifying filtering and wrapping modes.

◆ width

int Texture::width = 0

Width in pixels.


The documentation for this struct was generated from the following file: