init(timestamp:)
Creates a timestamp result from a value.
Declaration
init(timestamp: UInt64)Parameters
- timestamp:
A timestamp value from a counter sample buffer.
Discussion
Metal creates MTLCounterResultTimestamp instances for you when you resolve the counter set’s data (see Converting a GPU’s counter data into a readable format). There’s no reason for you to manually create one in your app.