Class MTLComputeCommandEncoder

All Implemented Interfaces:
NSObjectProtocol, MTLCommandEncoder, ObjCProtocol

public final class MTLComputeCommandEncoder
extends NSObject
implements MTLCommandEncoder
  • Constructor Details

    • MTLComputeCommandEncoder

      public MTLComputeCommandEncoder()
  • Method Details

    • getDispatchType

      public MTLDispatchType getDispatchType()
      Since:
      Available in iOS 12.0 and later.
    • getDevice

      public MTLDevice getDevice()
      Specified by:
      getDevice in interface MTLCommandEncoder
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface MTLCommandEncoder
    • setLabel

      public void setLabel​(String v)
      Specified by:
      setLabel in interface MTLCommandEncoder
    • setBytes

      public void setBytes​(byte[] bytes, long index)
      Since:
      Available in iOS 8.3 and later.
    • setBuffers

      public void setBuffers​(MTLBuffer[] buffers, long[] offsets, NSRange range)
    • setTextures

      public void setTextures​(MTLTexture[] textures, NSRange range)
    • setSamplerStates

      public void setSamplerStates​(MTLSamplerState[] samplers, NSRange range)
    • setSamplerStates

      public void setSamplerStates​(MTLSamplerState[] samplers, float[] lodMinClamps, float[] lodMaxClamps, NSRange range)
    • setComputePipelineState

      public void setComputePipelineState​(MTLComputePipelineState state)
    • setBytes

      protected void setBytes​(long bytes, long length, long index)
      Since:
      Available in iOS 8.3 and later.
    • setBuffer

      public void setBuffer​(MTLBuffer buffer, long offset, long index)
    • setBufferOffset

      public void setBufferOffset​(long offset, long index)
      Since:
      Available in iOS 8.3 and later.
    • setBuffers

      protected void setBuffers​(MTLBuffer.MTLBufferPtr buffers, MachineSizedUIntPtr offsets, NSRange range)
    • setVisibleFunctionTable

      public void setVisibleFunctionTable​(MTLVisibleFunctionTable visibleFunctionTable, long bufferIndex)
      Since:
      Available in iOS 14.0 and later.
    • setVisibleFunctionTables

      public void setVisibleFunctionTables​(MTLVisibleFunctionTable visibleFunctionTables, NSRange range)
      Since:
      Available in iOS 14.0 and later.
    • setIntersectionFunctionTable

      public void setIntersectionFunctionTable​(MTLIntersectionFunctionTable intersectionFunctionTable, long bufferIndex)
      Since:
      Available in iOS 14.0 and later.
    • setIntersectionFunctionTables

      public void setIntersectionFunctionTables​(MTLIntersectionFunctionTable intersectionFunctionTables, NSRange range)
      Since:
      Available in iOS 14.0 and later.
    • setAccelerationStructure

      public void setAccelerationStructure​(MTLAccelerationStructure accelerationStructure, long bufferIndex)
      Since:
      Available in iOS 14.0 and later.
    • setTexture

      public void setTexture​(MTLTexture texture, long index)
    • setTextures

      protected void setTextures​(MTLTexture.MTLTexturePtr textures, NSRange range)
    • setSamplerState

      public void setSamplerState​(MTLSamplerState sampler, long index)
    • setSamplerStates

      protected void setSamplerStates​(MTLSamplerState.MTLSamplerStatePtr samplers, NSRange range)
    • setSamplerState

      public void setSamplerState​(MTLSamplerState sampler, float lodMinClamp, float lodMaxClamp, long index)
    • setSamplerStates

      protected void setSamplerStates​(MTLSamplerState.MTLSamplerStatePtr samplers, FloatPtr lodMinClamps, FloatPtr lodMaxClamps, NSRange range)
    • setThreadgroupMemoryLength

      public void setThreadgroupMemoryLength​(long length, long index)
    • dispatchThreadgroups

      public void dispatchThreadgroups​(long width, long height)
      Since:
      Available in iOS 11.0 and later.
    • setStageInRegion

      public void setStageInRegion​(MTLRegion region)
      Since:
      Available in iOS 10.0 and later.
    • setStageInRegion

      public void setStageInRegion​(MTLBuffer indirectBuffer, long indirectBufferOffset)
      Since:
      Available in iOS 12.0 and later.
    • dispatchThreadgroups

      public void dispatchThreadgroups​(MTLSize threadgroupsPerGrid, MTLSize threadsPerThreadgroup)
    • dispatchThreadgroups

      public void dispatchThreadgroups​(MTLBuffer indirectBuffer, long indirectBufferOffset, MTLSize threadsPerThreadgroup)
      Since:
      Available in iOS 9.0 and later.
    • dispatchThread

      public void dispatchThread​(MTLSize threadsPerGrid, MTLSize threadsPerThreadgroup)
      Since:
      Available in iOS 11.0 and later.
    • updateFence

      public void updateFence​(MTLFence fence)
      Since:
      Available in iOS 10.0 and later.
    • waitForFence

      public void waitForFence​(MTLFence fence)
      Since:
      Available in iOS 10.0 and later.
    • useResource

      public void useResource​(MTLResource resource, MTLResourceUsage usage)
      Since:
      Available in iOS 11.0 and later.
    • useResources

      public void useResources​(MTLResource resources, long count, MTLResourceUsage usage)
      Since:
      Available in iOS 11.0 and later.
    • useHeap

      public void useHeap​(MTLHeap heap)
      Since:
      Available in iOS 11.0 and later.
    • useHeaps

      public void useHeaps​(MTLHeap heaps, long count)
      Since:
      Available in iOS 11.0 and later.
    • executeCommandsInBuffer

      public void executeCommandsInBuffer​(MTLIndirectCommandBuffer indirectCommandBuffer, NSRange executionRange)
      Since:
      Available in iOS 13.0 and later.
    • executeCommandsInBuffer

      public void executeCommandsInBuffer​(MTLIndirectCommandBuffer indirectCommandbuffer, MTLBuffer indirectRangeBuffer, long indirectBufferOffset)
      Since:
      Available in iOS 13.0 and later.
    • memoryBarrier

      public void memoryBarrier​(MTLBarrierScope scope)
      Since:
      Available in iOS 12.0 and later.
    • memoryBarrier

      public void memoryBarrier​(MTLResource resources, long count)
      Since:
      Available in iOS 12.0 and later.
    • sampleCountersInBuffer

      public void sampleCountersInBuffer​(MTLCounterSampleBuffer sampleBuffer, long sampleIndex, boolean barrier)
      Since:
      Available in iOS 14.0 and later.
    • endEncoding

      public void endEncoding()
      Specified by:
      endEncoding in interface MTLCommandEncoder
    • insertDebugSignpost

      public void insertDebugSignpost​(String string)
      Specified by:
      insertDebugSignpost in interface MTLCommandEncoder
    • pushDebugGroup

      public void pushDebugGroup​(String string)
      Specified by:
      pushDebugGroup in interface MTLCommandEncoder
    • popDebugGroup

      public void popDebugGroup()
      Specified by:
      popDebugGroup in interface MTLCommandEncoder