rrCreateContextVk

Creates context from an existing Vulkan device.

RRError rrCreateContextVk(

uint32_t api_version,

VkDevice device,

VkPhysicalDevice physical_device,

VkQueue command_queue,

uint32_t queue_family_index,

RRContext* context);

Applies to

Vulkan

Parameters

Parameter

Input/Output

Description

api_version

input

API version.

VkDevice

input

Vulkan device to use.

physical_device

input

Vulkan physical device to use.

command_queue

input

Vulkan handle to a queue object.

queue_family_index

input

Vulkan family index of provided queue.

context

output

RadeonRays context.

Return

Returns an error in case of a failure, or RRSuccess otherwise.