Package apple.metal.c

Class Metal


  • public final class Metal
    extends java.lang.Object
    • Method Detail

      • MTLOriginMake

        public static MTLOrigin MTLOriginMake​(long x,
                                              long y,
                                              long z)
      • MTLSizeMake

        public static MTLSize MTLSizeMake​(long width,
                                          long height,
                                          long depth)
      • MTLRegionMake1D

        public static MTLRegion MTLRegionMake1D​(long x,
                                                long width)
      • MTLRegionMake2D

        public static MTLRegion MTLRegionMake2D​(long x,
                                                long y,
                                                long width,
                                                long height)
      • MTLRegionMake3D

        public static MTLRegion MTLRegionMake3D​(long x,
                                                long y,
                                                long z,
                                                long width,
                                                long height,
                                                long depth)
      • MTLCreateSystemDefaultDevice

        public static java.lang.Object MTLCreateSystemDefaultDevice()
        Returns a reference to the preferred system default Metal device. 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.
      • MTLClearColorMake

        public static MTLClearColor MTLClearColorMake​(double red,
                                                      double green,
                                                      double blue,
                                                      double alpha)
      • MTLLibraryErrorDomain

        public static java.lang.String MTLLibraryErrorDomain()
        [@constant] MTLLibraryErrorDomain NSErrors raised when creating a library.
      • MTLCommandBufferErrorDomain

        public static java.lang.String MTLCommandBufferErrorDomain()
        [@constant] MTLCommandBufferErrorDomain An error domain for NSError objects produced by MTLCommandBuffer
      • MTLSamplePositionMake

        public static MTLSamplePosition MTLSamplePositionMake​(float x,
                                                              float y)
      • MTLCoordinate2DMake

        public static MTLSamplePosition MTLCoordinate2DMake​(float x,
                                                            float y)
        [@function] MTLCoordinate2DMake Convenience function to create a 2D coordinate from 2 values.
      • MTLTextureSwizzleChannelsMake

        public static MTLTextureSwizzleChannels MTLTextureSwizzleChannelsMake​(byte r,
                                                                              byte g,
                                                                              byte b,
                                                                              byte a)
      • MTLCaptureErrorDomain

        public static java.lang.String MTLCaptureErrorDomain()
      • MTLCommonCounterTimestamp

        public static java.lang.String MTLCommonCounterTimestamp()
      • MTLCommonCounterTessellationInputPatches

        public static java.lang.String MTLCommonCounterTessellationInputPatches()
      • MTLCommonCounterVertexInvocations

        public static java.lang.String MTLCommonCounterVertexInvocations()
      • MTLCommonCounterPostTessellationVertexInvocations

        public static java.lang.String MTLCommonCounterPostTessellationVertexInvocations()
      • MTLCommonCounterClipperInvocations

        public static java.lang.String MTLCommonCounterClipperInvocations()
      • MTLCommonCounterClipperPrimitivesOut

        public static java.lang.String MTLCommonCounterClipperPrimitivesOut()
      • MTLCommonCounterFragmentInvocations

        public static java.lang.String MTLCommonCounterFragmentInvocations()
      • MTLCommonCounterFragmentsPassed

        public static java.lang.String MTLCommonCounterFragmentsPassed()
      • MTLCommonCounterComputeKernelInvocations

        public static java.lang.String MTLCommonCounterComputeKernelInvocations()
      • MTLCommonCounterTotalCycles

        public static java.lang.String MTLCommonCounterTotalCycles()
      • MTLCommonCounterVertexCycles

        public static java.lang.String MTLCommonCounterVertexCycles()
      • MTLCommonCounterTessellationCycles

        public static java.lang.String MTLCommonCounterTessellationCycles()
      • MTLCommonCounterPostTessellationVertexCycles

        public static java.lang.String MTLCommonCounterPostTessellationVertexCycles()
      • MTLCommonCounterFragmentCycles

        public static java.lang.String MTLCommonCounterFragmentCycles()
      • MTLCommonCounterRenderTargetWriteCycles

        public static java.lang.String MTLCommonCounterRenderTargetWriteCycles()
      • MTLCommonCounterSetTimestamp

        public static java.lang.String MTLCommonCounterSetTimestamp()
      • MTLCommonCounterSetStageUtilization

        public static java.lang.String MTLCommonCounterSetStageUtilization()
      • MTLCommonCounterSetStatistic

        public static java.lang.String MTLCommonCounterSetStatistic()
      • MTLCounterErrorDomain

        public static java.lang.String MTLCounterErrorDomain()
        [@constant] MTLCounterErrorDomain NSErrors raised when creating a counter sample buffer.
      • MTLCommandBufferEncoderInfoErrorKey

        public static java.lang.String MTLCommandBufferEncoderInfoErrorKey()
        Key in the userInfo for MTLCommandBufferError NSErrors. Value is an NSArray of MTLCommandBufferEncoderInfo objects in recorded order if an appropriate MTLCommandBufferErrorOption was set, otherwise the key will not exist in the userInfo dictionary.
      • MTLDynamicLibraryDomain

        public static java.lang.String MTLDynamicLibraryDomain()
      • MTLBinaryArchiveDomain

        public static java.lang.String MTLBinaryArchiveDomain()