KDGpu::VulkanTexture
Module: Vulkan
VulkanTexture.
#include <vulkan_texture.h>
Public Functions
|
Name |
|
VulkanTexture(VkImage _image, VmaAllocation _allocation, VmaAllocator _allocator, Format _format, Extent3D _extent, uint32_t _mipLevels, uint32_t _arrayLayers, TextureUsageFlags _usage, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle, const MemoryHandle & _externalMemoryHandle, uint64_t _drmFormatModifier, bool _ownedBySwapchain =false) |
void * |
map() |
void |
unmap() |
void |
hostLayoutTransition(const HostLayoutTransition & transition) |
void |
copyHostMemoryToTexture(const HostMemoryToTextureCopy & copy) |
void |
copyTextureToHostMemory(const TextureToHostMemoryCopy & copy) |
void |
copyTextureToTextureHost(const TextureToTextureCopyHost & copy) |
SubresourceLayout |
getSubresourceLayout(const TextureSubresource & subresource) const |
MemoryHandle |
externalMemoryHandle() const |
uint64_t |
drmFormatModifier() const |
Public Attributes
Public Functions Documentation
function VulkanTexture
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | explicit VulkanTexture(
VkImage _image,
VmaAllocation _allocation,
VmaAllocator _allocator,
Format _format,
Extent3D _extent,
uint32_t _mipLevels,
uint32_t _arrayLayers,
TextureUsageFlags _usage,
VulkanResourceManager * _vulkanResourceManager,
const Handle< Device_t > & _deviceHandle,
const MemoryHandle & _externalMemoryHandle,
uint64_t _drmFormatModifier,
bool _ownedBySwapchain =false
)
|
function map
function unmap
function hostLayoutTransition
| void hostLayoutTransition(
const HostLayoutTransition & transition
)
|
function copyHostMemoryToTexture
| void copyHostMemoryToTexture(
const HostMemoryToTextureCopy & copy
)
|
function copyTextureToHostMemory
| void copyTextureToHostMemory(
const TextureToHostMemoryCopy & copy
)
|
function copyTextureToTextureHost
| void copyTextureToTextureHost(
const TextureToTextureCopyHost & copy
)
|
function getSubresourceLayout
| SubresourceLayout getSubresourceLayout(
const TextureSubresource & subresource
) const
|
function externalMemoryHandle
| MemoryHandle externalMemoryHandle() const
|
| uint64_t drmFormatModifier() const
|
Public Attributes Documentation
variable image
| VkImage image { VK_NULL_HANDLE };
|
variable allocation
| VmaAllocation allocation { VK_NULL_HANDLE };
|
variable allocator
| VmaAllocator allocator { VK_NULL_HANDLE };
|
variable mapped
| void * mapped { nullptr };
|
variable extent
variable mipLevels
variable arrayLayers
variable usage
variable ownedBySwapchain
| bool ownedBySwapchain { false };
|
variable vulkanResourceManager
| VulkanResourceManager * vulkanResourceManager { nullptr };
|
variable deviceHandle
| Handle< Device_t > deviceHandle;
|
variable m_externalMemoryHandle
| MemoryHandle m_externalMemoryHandle {};
|
| uint64_t m_drmFormatModifier {};
|
Updated on 2025-06-19 at 00:02:03 +0000