rrGetDevicePtrFromVkBuffer

Obtains device pointer from Vulkan buffer.

RRError rrGetDevicePtrFromVkBuffer(

RRContext context,

VkBuffer resource,

size_t offset,

RRDevicePtr* device_ptr);

Applies to

Vulkan

Parameters

Parameter

Input/Output

Description

context

input

RR API context.

resource

input

Vulkan device buffer (binded to memory) to request pointer to.

offset

input

Offset within a buffer.

device_ptr

output

RR device pointer to the resource.

Return

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