public interface MTLCounterSampleBuffer
The Counter Sample Buffer contains opaque counter samples as well as state needed to request a sample from the API.
| Modifier and Type | Method and Description |
|---|---|
MTLDevice |
device()
[@property] device The device that created the sample buffer.
|
java.lang.String |
label()
[@property] label The label for the sample buffer.
|
NSData |
resolveCounterRange(NSRange range)
resolveCounterRange:
|
long |
sampleCount()
[@property] sampleCount The number of samples that may be stored in this sample buffer.
|
MTLDevice device()
java.lang.String label()
NSData resolveCounterRange(NSRange range)
Resolve the counters from the sample buffer to an NSData containing the counter values. This may only be used with sample buffers that have MTLStorageModeShared.
Samples that encountered an error during resolve will be set to MTLCounterErrorValue.
range - The range of indices in the sample buffer to resolve.long sampleCount()