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. | |
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.
| uint32_t mxvk::TextureResource::height = 0 |
Texture height in pixels.
Definition at line 54 of file mxvk_resource.hpp.
| VkImage mxvk::TextureResource::image = VK_NULL_HANDLE |
Optimal-tiled image containing the texture pixels.
Definition at line 44 of file mxvk_resource.hpp.
| VkDeviceMemory mxvk::TextureResource::memory = VK_NULL_HANDLE |
Device-local memory bound to image.
Definition at line 46 of file mxvk_resource.hpp.
| 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.
| VkImageView mxvk::TextureResource::view = VK_NULL_HANDLE |
2D color image view used by descriptors.
Definition at line 48 of file mxvk_resource.hpp.
| uint32_t mxvk::TextureResource::width = 0 |
Texture width in pixels.
Definition at line 52 of file mxvk_resource.hpp.