rrGetTraceMemoryRequirements

Gets memory requirements for trace scracth buffer.

RRError rrGetTraceMemoryRequirements(

RRContext context,

uint32_t ray_count,

size_t* scratch_size);

Applies to

DirectX 12, Vulkan, Metal

Parameters

Parameter

Input/Output

Description

context

input

RR API context.

ray_count

input

Number of rays in the buffer (or max number of rays if indirect_ray_count is supplied).

scratch_size

input

Pointer to write result to.

Return

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