libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
mx::VKAbstractModel::TexEntry Struct Reference

Vulkan image, memory, and view for one loaded texture. More...

#include <vk_abstract_model.hpp>

Public Attributes

VkImage image = VK_NULL_HANDLE
 Vulkan image handle.
VkDeviceMemory memory = VK_NULL_HANDLE
 Device memory backing the image.
VkImageView view = VK_NULL_HANDLE
 Image view for shader sampling.
uint32_t w = 0
uint32_t h = 0
 Texture dimensions in pixels.

Detailed Description

Vulkan image, memory, and view for one loaded texture.

Definition at line 91 of file vk_abstract_model.hpp.

Member Data Documentation

◆ h

uint32_t mx::VKAbstractModel::TexEntry::h = 0

◆ image

VkImage mx::VKAbstractModel::TexEntry::image = VK_NULL_HANDLE

Vulkan image handle.

Definition at line 92 of file vk_abstract_model.hpp.

Referenced by mx::VKAbstractModel::loadModelTextures(), and mx::VKAbstractModel::loadModelTexturesFromMTL().

◆ memory

VkDeviceMemory mx::VKAbstractModel::TexEntry::memory = VK_NULL_HANDLE

Device memory backing the image.

Definition at line 93 of file vk_abstract_model.hpp.

Referenced by mx::VKAbstractModel::loadModelTextures(), and mx::VKAbstractModel::loadModelTexturesFromMTL().

◆ view

VkImageView mx::VKAbstractModel::TexEntry::view = VK_NULL_HANDLE

Image view for shader sampling.

Definition at line 94 of file vk_abstract_model.hpp.

Referenced by mx::VKAbstractModel::loadModelTextures(), and mx::VKAbstractModel::loadModelTexturesFromMTL().

◆ w

uint32_t mx::VKAbstractModel::TexEntry::w = 0

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