Graphics vulkan

Graphics Vulkan API

Namespace: dmGraphics
Include: #include <dmsdk/graphics/graphics_vulkan.h>
FUNCTIONS
dmGraphics::HTexture VulkanGetActiveSwapChainTexture(dmGraphics::HContext context) Get the current swap chain texture
id VulkanGraphicsCommandQueueToMetal(dmGraphics::HContext context) Get the native MTLCommandQueue from the Vulkan con...
id VulkanTextureToMetal(dmGraphics::HContext context, dmGraphics::HTexture texture) Get a native MTLTexture from a Vulkan HTexture. On...

Functions

VulkanGetActiveSwapChainTexture

dmGraphics::HTexture VulkanGetActiveSwapChainTexture(dmGraphics::HContext context)

Get the current swap chain texture

PARAMETERS

dmGraphics::HContext context the vulkan context

RETURNS

dmGraphics::HTexture the swap chain texture for the current frame

VulkanGraphicsCommandQueueToMetal

id VulkanGraphicsCommandQueueToMetal(dmGraphics::HContext context)

Get the native MTLCommandQueue from the Vulkan context. Only available when using Mac/iOS.

PARAMETERS

dmGraphics::HContext context the vulkan context

RETURNS

id the Metal graphics queue wrapped with a (__bridge void*)

VulkanTextureToMetal

id VulkanTextureToMetal(dmGraphics::HContext context, dmGraphics::HTexture texture)

Get a native MTLTexture from a Vulkan HTexture. Only available when using Mac/iOS.

PARAMETERS

dmGraphics::HContext context the vulkan context
dmGraphics::HTexture texture the texture

RETURNS

id the Metal texture wrapped with a (__bridge void*)