MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk::TextureResource Struct Reference

Owned sampled 2D texture resources. More...

#include <mxvk/include/mxvk/mxvk_resource.hpp>

Public Attributes

uint32_t height = 0
 Texture height in pixels.
VkImage image = VK_NULL_HANDLE
 Optimal-tiled image containing the texture pixels.
VkDeviceMemory memory = VK_NULL_HANDLE
 Device-local memory bound to image.
VkSampler sampler = VK_NULL_HANDLE
 Sampler configured for linear filtering and clamp-to-edge addressing.
VkImageView view = VK_NULL_HANDLE
 2D color image view used by descriptors.
uint32_t width = 0
 Texture width in pixels.

Detailed Description

Owned sampled 2D texture resources.

Texture upload helpers create the image, memory, image view, and sampler. destroy_texture() releases every live member and resets the dimensions.

Definition at line 42 of file mxvk_resource.hpp.

Member Data Documentation

◆ height

uint32_t mxvk::TextureResource::height = 0

Texture height in pixels.

Definition at line 54 of file mxvk_resource.hpp.

◆ image

VkImage mxvk::TextureResource::image = VK_NULL_HANDLE

Optimal-tiled image containing the texture pixels.

Definition at line 44 of file mxvk_resource.hpp.

◆ memory

VkDeviceMemory mxvk::TextureResource::memory = VK_NULL_HANDLE

Device-local memory bound to image.

Definition at line 46 of file mxvk_resource.hpp.

◆ sampler

VkSampler mxvk::TextureResource::sampler = VK_NULL_HANDLE

Sampler configured for linear filtering and clamp-to-edge addressing.

Definition at line 50 of file mxvk_resource.hpp.

◆ view

VkImageView mxvk::TextureResource::view = VK_NULL_HANDLE

2D color image view used by descriptors.

Definition at line 48 of file mxvk_resource.hpp.

◆ width

uint32_t mxvk::TextureResource::width = 0

Texture width in pixels.

Definition at line 52 of file mxvk_resource.hpp.


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