Namespace: dmGraphics
Language: C++
Type: Defold C++
File: graphics_vulkan.h
Source: engine/graphics/src/dmsdk/graphics/graphics_vulkan.h
Include: dmsdk/graphics/graphics_vulkan.h
Graphics Vulkan API
Type: TYPEDEF
Type: TYPEDEF
Type: FUNCTION Create Vulkan descriptor pool. No need to deallocate descripto pool manualy because it will be deallocated automatically when context will be destroyed. Only available when using Mac/iOS.
Parameters
vk_device (VkDevice) - the Vulkan device handlemax_descriptors (uint16_t) - maximum size of allocated poolvk_descriptor_pool_out (VkDescriptorPool*) - result Vulkan descriptor poolReturns
result (bool) - true if creation was successful. Otherwise returns falseType: FUNCTION Get the current swap chain texture
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
swapchain (dmGraphics::HTexture) - the swap chain texture for the current frameType: FUNCTION Get Vulkan command buffer which used at the current frame. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
command_buffer (VkCommandBuffer) - the Vulkan command bufferType: FUNCTION Get Vulkan device handle. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
device (VkDevice) - the Vulkan device handleType: FUNCTION Get Vulkan graphics queue handle. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
queue (VkQueue) - the Vulkan graphics queueType: FUNCTION Get Vulkan queue family. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan context
return family uint16_t graphics queue familyType: FUNCTION Get the native Vulkan image handle from an engine texture handle. Returns 0 if the texture handle does not resolve to a Vulkan image.
Parameters
context (dmGraphics::HContext) - the Vulkan contexttexture (dmGraphics::HTexture) - the texture handleReturns
image (VkImage) - the Vulkan image handleType: FUNCTION Get the native Vulkan image view handle from an engine texture handle. Returns 0 if the texture handle does not resolve to a Vulkan image view.
Parameters
context (dmGraphics::HContext) - the Vulkan contexttexture (dmGraphics::HTexture) - the texture handleReturns
image_view (VkImageView) - the Vulkan image view handleType: FUNCTION Get Vulkan instance handle. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
instance (VkInstance) - the Vulkan instance handleType: FUNCTION Get Vulkan physical device handle. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
physical_device (VkPhysicalDevice) - the Vulkan physical device handleType: FUNCTION Get Vulkan render pass handle. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
render_pass (VkRenderPass) - the Vulkan render pass handleType: FUNCTION Get the native MTLCommandQueue from the Vulkan context. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contextReturns
mtl_queue (idType: FUNCTION Get a native MTLTexture from a Vulkan HTexture. Only available when using Mac/iOS.
Parameters
context (dmGraphics::HContext) - the Vulkan contexttexture (dmGraphics::HTexture) - the textureReturns
mtl_texture (id