rrCreateContextMTL

Create context from existing Metal device.

RRError rrCreateContextMTL(

uint32_t api_version,

id<MTLDevice> device,

id<MTLCommandQueue> command_queue,

RRContext* context);

Applies to

Metal

Parameters

Parameter

Input/Output

Description

api_version

input

API version.

device

input

Metal device to use.

command_queue

input

Metal command queue for the context.

context

output

RR context.

Return

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