rrGetDevicePtrFromBuffer

Obtains device pointer from buffer.

RRError rrGetDevicePtrFromBuffer(

RRContext context,

void* resource,

size_t offset,

size_t size,

RRDevicePtr* device_ptr);

Applies to

Native

Parameters

Parameter

Input/Output

Description

context

input

RR API context.

resource

input

Buffer to request pointer to.

offset

input

Offset within a buffer.

size

input

Size of a buffer.

device_ptr

output

RR device pointer to the resource.

Return

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