tns-platform-declarations
Version:
Platform-specific TypeScript declarations for NativeScript for accessing native objects
18 lines (9 loc) • 433 B
TypeScript
declare const enum MPSDeviceOptions {
Default = 0,
LowPower = 1,
SkipRemovable = 2
}
declare function MPSGetPreferredDevice(options: MPSDeviceOptions): MTLDevice;
declare function MPSHintTemporaryMemoryHighWaterMark(cmdBuf: MTLCommandBuffer, bytes: number): void;
declare function MPSSetHeapCacheDuration(cmdBuf: MTLCommandBuffer, seconds: number): void;
declare function MPSSupportsMTLDevice(device: MTLDevice): boolean;