Interface MTLIndirectComputeCommand


  • public interface MTLIndirectComputeCommand
    API-Since: 13.0
    • Method Detail

      • clearBarrier

        void clearBarrier()
      • concurrentDispatchThreadgroupsThreadsPerThreadgroup

        void concurrentDispatchThreadgroupsThreadsPerThreadgroup​(MTLSize threadgroupsPerGrid,
                                                                 MTLSize threadsPerThreadgroup)
      • concurrentDispatchThreadsThreadsPerThreadgroup

        void concurrentDispatchThreadsThreadsPerThreadgroup​(MTLSize threadsPerGrid,
                                                            MTLSize threadsPerThreadgroup)
      • reset

        void reset()
      • setBarrier

        void setBarrier()
      • setComputePipelineState

        void setComputePipelineState​(@NotNull
                                     @NotNull MTLComputePipelineState pipelineState)
        API-Since: 13.0
      • setKernelBufferOffsetAtIndex

        void setKernelBufferOffsetAtIndex​(@NotNull
                                          @NotNull MTLBuffer buffer,
                                          long offset,
                                          long index)
      • setStageInRegion

        void setStageInRegion​(MTLRegion region)
      • setThreadgroupMemoryLengthAtIndex

        void setThreadgroupMemoryLengthAtIndex​(long length,
                                               long index)
      • setImageblockWidthHeight

        void setImageblockWidthHeight​(long width,
                                      long height)
        API-Since: 14.0
      • setKernelBufferOffsetAttributeStrideAtIndex

        void setKernelBufferOffsetAttributeStrideAtIndex​(@NotNull
                                                         @NotNull MTLBuffer buffer,
                                                         long offset,
                                                         long stride,
                                                         long index)
        sets kernel buffer at specified index with provided offset and stride. only call this when the buffer-index is part of the stageInputDescriptor and has set its stride to `MTLBufferLayoutStrideDynamic` API-Since: 17.0