Package apple.metal.c

Class Metal


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

      • MTLResourceCPUCacheModeShift

        public static final double MTLResourceCPUCacheModeShift
        See Also:
        Constant Field Values
      • MTLResourceStorageModeShift

        public static final double MTLResourceStorageModeShift
        See Also:
        Constant Field Values
      • MTLResourceHazardTrackingModeShift

        public static final double MTLResourceHazardTrackingModeShift
        See Also:
        Constant Field Values
      • MTLBufferLayoutStrideDynamic

        public static final long MTLBufferLayoutStrideDynamic
        when a MTLVertexBufferLayoutDescriptor has its stride set to this value, the stride will be dynamic and must be set explicitly when binding a buffer to a render command encoder. API-Since: 17.0
      • MTLAttributeStrideStatic

        public static final long MTLAttributeStrideStatic
        When calling functions with an `attributeStrides:` parameter on a render or compute command encoder, this value must be provided for the binding points that are either not part of the set of MTLBufferLayoutDescriptor, or whose stride values in the descriptor is not set to `MTLBufferLayoutStrideDynamic` API-Since: 17.0
    • 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

        @Nullable
        public static @Nullable 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. API-Since: 8.0
      • MTLClearColorMake

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

        @NotNull
        public static @NotNull java.lang.String MTLLibraryErrorDomain()
        [@constant] MTLLibraryErrorDomain NSErrors raised when creating a library. API-Since: 8.0
      • MTLCommandBufferErrorDomain

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

        public static MTLSamplePosition MTLSamplePositionMake​(float x,
                                                              float y)
        API-Since: 11.0
      • 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)
        API-Since: 13.0
      • MTLCaptureErrorDomain

        @NotNull
        public static @NotNull java.lang.String MTLCaptureErrorDomain()
        API-Since: 13.0
      • MTLCommonCounterTimestamp

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterTimestamp()
        API-Since: 14.0
      • MTLCommonCounterTessellationInputPatches

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterTessellationInputPatches()
        API-Since: 14.0
      • MTLCommonCounterVertexInvocations

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterVertexInvocations()
        API-Since: 14.0
      • MTLCommonCounterPostTessellationVertexInvocations

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterPostTessellationVertexInvocations()
        API-Since: 14.0
      • MTLCommonCounterClipperInvocations

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterClipperInvocations()
        API-Since: 14.0
      • MTLCommonCounterClipperPrimitivesOut

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterClipperPrimitivesOut()
        API-Since: 14.0
      • MTLCommonCounterFragmentInvocations

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterFragmentInvocations()
        API-Since: 14.0
      • MTLCommonCounterFragmentsPassed

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterFragmentsPassed()
        API-Since: 14.0
      • MTLCommonCounterComputeKernelInvocations

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterComputeKernelInvocations()
        API-Since: 14.0
      • MTLCommonCounterTotalCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterTotalCycles()
        API-Since: 14.0
      • MTLCommonCounterVertexCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterVertexCycles()
        API-Since: 14.0
      • MTLCommonCounterTessellationCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterTessellationCycles()
        API-Since: 14.0
      • MTLCommonCounterPostTessellationVertexCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterPostTessellationVertexCycles()
        API-Since: 14.0
      • MTLCommonCounterFragmentCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterFragmentCycles()
        API-Since: 14.0
      • MTLCommonCounterRenderTargetWriteCycles

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterRenderTargetWriteCycles()
        API-Since: 14.0
      • MTLCommonCounterSetTimestamp

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterSetTimestamp()
        API-Since: 14.0
      • MTLCommonCounterSetStageUtilization

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterSetStageUtilization()
        API-Since: 14.0
      • MTLCommonCounterSetStatistic

        @NotNull
        public static @NotNull java.lang.String MTLCommonCounterSetStatistic()
        API-Since: 14.0
      • MTLCounterErrorDomain

        @NotNull
        public static @NotNull java.lang.String MTLCounterErrorDomain()
        [@constant] MTLCounterErrorDomain NSErrors raised when creating a counter sample buffer. API-Since: 14.0
      • MTLCommandBufferEncoderInfoErrorKey

        @NotNull
        public static @NotNull 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. API-Since: 14.0
      • MTLDynamicLibraryDomain

        @NotNull
        public static @NotNull java.lang.String MTLDynamicLibraryDomain()
        API-Since: 14.0
      • MTLBinaryArchiveDomain

        @NotNull
        public static @NotNull java.lang.String MTLBinaryArchiveDomain()
        API-Since: 14.0
      • MTLPackedFloat3Make

        public static MTLPackedFloat3 MTLPackedFloat3Make​(float x,
                                                          float y,
                                                          float z)
      • MTLIOCompressionContextDefaultChunkSize

        public static long MTLIOCompressionContextDefaultChunkSize()
        [@function] MTLIOCompressionContextDefaultChunkSize The default chunk size to use for a compression context.
      • MTLIOCreateCompressionContext

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.VoidPtr MTLIOCreateCompressionContext​(@NotNull
                                                                                               @NotNull java.lang.String path,
                                                                                               long type,
                                                                                               long chunkSize)
        [@function] MTLIOCreateCompressionContext used to create a context that writes a stream of data to a path using a given codec and chunk size. An invalid type will cause a nil to be returned. If path is invalid or fails to open a nil will be returned and errno will be set. API-Since: 16.0
      • MTLIOCompressionContextAppendData

        public static void MTLIOCompressionContextAppendData​(@NotNull
                                                             @NotNull org.moe.natj.general.ptr.VoidPtr context,
                                                             @NotNull
                                                             @NotNull org.moe.natj.general.ptr.ConstVoidPtr data,
                                                             long size)
        [@function] MTLIOCompressionContextAppendData append data to a compression context. API-Since: 16.0
      • MTLIOFlushAndDestroyCompressionContext

        public static long MTLIOFlushAndDestroyCompressionContext​(@NotNull
                                                                  @NotNull org.moe.natj.general.ptr.VoidPtr context)
        [@function] MTLIOFlushAndDestroyCompressionContext close the compression context and write the pack file. API-Since: 16.0
      • MTLIOErrorDomain

        @NotNull
        public static @NotNull java.lang.String MTLIOErrorDomain()
        API-Since: 16.0