public final class Metal
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
MTLBinaryArchiveDomain() |
static java.lang.String |
MTLCaptureErrorDomain() |
static MTLClearColor |
MTLClearColorMake(double red,
double green,
double blue,
double alpha) |
static java.lang.String |
MTLCommandBufferEncoderInfoErrorKey()
Key in the userInfo for MTLCommandBufferError NSErrors.
|
static java.lang.String |
MTLCommandBufferErrorDomain()
[@constant] MTLCommandBufferErrorDomain
|
static java.lang.String |
MTLCommonCounterClipperInvocations() |
static java.lang.String |
MTLCommonCounterClipperPrimitivesOut() |
static java.lang.String |
MTLCommonCounterComputeKernelInvocations() |
static java.lang.String |
MTLCommonCounterFragmentCycles() |
static java.lang.String |
MTLCommonCounterFragmentInvocations() |
static java.lang.String |
MTLCommonCounterFragmentsPassed() |
static java.lang.String |
MTLCommonCounterPostTessellationVertexCycles() |
static java.lang.String |
MTLCommonCounterPostTessellationVertexInvocations() |
static java.lang.String |
MTLCommonCounterRenderTargetWriteCycles() |
static java.lang.String |
MTLCommonCounterSetStageUtilization() |
static java.lang.String |
MTLCommonCounterSetStatistic() |
static java.lang.String |
MTLCommonCounterSetTimestamp() |
static java.lang.String |
MTLCommonCounterTessellationCycles() |
static java.lang.String |
MTLCommonCounterTessellationInputPatches() |
static java.lang.String |
MTLCommonCounterTimestamp() |
static java.lang.String |
MTLCommonCounterTotalCycles() |
static java.lang.String |
MTLCommonCounterVertexCycles() |
static java.lang.String |
MTLCommonCounterVertexInvocations() |
static MTLSamplePosition |
MTLCoordinate2DMake(float x,
float y)
[@function] MTLCoordinate2DMake
|
static java.lang.String |
MTLCounterErrorDomain()
[@constant] MTLCounterErrorDomain
|
static java.lang.Object |
MTLCreateSystemDefaultDevice()
Returns a reference to the preferred system default Metal device.
|
static java.lang.String |
MTLDynamicLibraryDomain() |
static MTLIndirectCommandBufferExecutionRange |
MTLIndirectCommandBufferExecutionRangeMake(int location,
int length) |
static java.lang.String |
MTLLibraryErrorDomain()
[@constant] MTLLibraryErrorDomain
|
static MTLOrigin |
MTLOriginMake(long x,
long y,
long z) |
static MTLPackedFloat3 |
MTLPackedFloat3Make(float x,
float y,
float z) |
static MTLRegion |
MTLRegionMake1D(long x,
long width) |
static MTLRegion |
MTLRegionMake2D(long x,
long y,
long width,
long height) |
static MTLRegion |
MTLRegionMake3D(long x,
long y,
long z,
long width,
long height,
long depth) |
static MTLSamplePosition |
MTLSamplePositionMake(float x,
float y) |
static MTLSize |
MTLSizeMake(long width,
long height,
long depth) |
static MTLTextureSwizzleChannels |
MTLTextureSwizzleChannelsMake(byte r,
byte g,
byte b,
byte a) |
public static MTLOrigin MTLOriginMake(long x, long y, long z)
public static MTLSize MTLSizeMake(long width, long height, long depth)
public static MTLRegion MTLRegionMake1D(long x, long width)
public static MTLRegion MTLRegionMake2D(long x, long y, long width, long height)
public static MTLRegion MTLRegionMake3D(long x, long y, long z, long width, long height, long depth)
public static java.lang.Object MTLCreateSystemDefaultDevice()
On Mac OS X systems that support automatic graphics switching, calling this API to get a Metal device will cause the system to switch to the high power GPU. On other systems that support more than one GPU it will return the GPU that is associated with the main display.
public static MTLClearColor MTLClearColorMake(double red, double green, double blue, double alpha)
public static java.lang.String MTLLibraryErrorDomain()
NSErrors raised when creating a library.
public static java.lang.String MTLCommandBufferErrorDomain()
An error domain for NSError objects produced by MTLCommandBuffer
public static MTLSamplePosition MTLSamplePositionMake(float x, float y)
public static MTLSamplePosition MTLCoordinate2DMake(float x, float y)
Convenience function to create a 2D coordinate from 2 values.
public static MTLTextureSwizzleChannels MTLTextureSwizzleChannelsMake(byte r, byte g, byte b, byte a)
public static MTLIndirectCommandBufferExecutionRange MTLIndirectCommandBufferExecutionRangeMake(int location, int length)
public static java.lang.String MTLCaptureErrorDomain()
public static java.lang.String MTLCommonCounterTimestamp()
public static java.lang.String MTLCommonCounterTessellationInputPatches()
public static java.lang.String MTLCommonCounterVertexInvocations()
public static java.lang.String MTLCommonCounterPostTessellationVertexInvocations()
public static java.lang.String MTLCommonCounterClipperInvocations()
public static java.lang.String MTLCommonCounterClipperPrimitivesOut()
public static java.lang.String MTLCommonCounterFragmentInvocations()
public static java.lang.String MTLCommonCounterFragmentsPassed()
public static java.lang.String MTLCommonCounterComputeKernelInvocations()
public static java.lang.String MTLCommonCounterTotalCycles()
public static java.lang.String MTLCommonCounterVertexCycles()
public static java.lang.String MTLCommonCounterTessellationCycles()
public static java.lang.String MTLCommonCounterPostTessellationVertexCycles()
public static java.lang.String MTLCommonCounterFragmentCycles()
public static java.lang.String MTLCommonCounterRenderTargetWriteCycles()
public static java.lang.String MTLCommonCounterSetTimestamp()
public static java.lang.String MTLCommonCounterSetStageUtilization()
public static java.lang.String MTLCommonCounterSetStatistic()
public static java.lang.String MTLCounterErrorDomain()
NSErrors raised when creating a counter sample buffer.
public static java.lang.String MTLCommandBufferEncoderInfoErrorKey()
public static java.lang.String MTLDynamicLibraryDomain()
public static java.lang.String MTLBinaryArchiveDomain()
public static MTLPackedFloat3 MTLPackedFloat3Make(float x, float y, float z)