rrGetDevicePtrFromMTLResource
Obtains device pointer from Metal buffer.
RRError rrGetDevicePtrFromMTLResource( |
RRContext context, |
id<MTLBuffer> resource, |
|
size_t offset, |
|
RRDevicePtr* device_ptr); |
Applies to
Metal
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
context |
input |
RR API context. |
resource |
input |
Metal resource 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.