Skip to main content

VKTexture

The VKTexture class is a Vulkan-specific implementation of the Texture class, providing access to Vulkan texture resources and views. It enables the creation of external textures, specifying Vulkan image handles, formats, and layouts, while supporting various texture formats and flags. This class allows for managing texture layouts, retrieving texture views, and interacting with Vulkan-specific texture ranges, along with shared pointer functionality for interoperability. The class also inherits the create method from the Texture class, facilitating the initialization of textures in Vulkan-based applications.VKTexture.

#include <platform/TellusimTexture.h>

Inheritance

Constructors

VKTexture()

Methods

Create external texture.

bool create(Type type, uint32_t format, VkImage texture, uint32_t layout, Flags flags = DefaultFlags, Format texture_format = FormatUnknown)
uint32_t getPixelFormat() const
VkImage getVKTexture() const
VkImageView getTextureView() const
void setTextureLayout(uint32_t layout)
uint32_t getTextureLayout() const
void getTextureRange(void *range, Slice slice) const
void *getSharedPtr() const
void *getInteropHandle() const