Radeon ProRender

rrAllocateDeviceBuffer

Obtains a device pointer to an allocated Vulkan buffer.

Creates an allocated buffer with the required size with host visible and coherent properties.

RRError rrAllocateDeviceBuffer( RRContext context,
  size_t size,
  RRDevicePtr* device_ptr);

Applies to

Vulkan

Parameters

Parameter Input/Output Description
context input RR API context.
size input Size of the required buffer.
device_ptr output RR device pointer to the resource.

Return

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