Class MTLRenderCommandEncoder

    • Constructor Detail

      • MTLRenderCommandEncoder

        public MTLRenderCommandEncoder()
    • Method Detail

      • getTileWidth

        public long getTileWidth()
        Since:
        Available in iOS 11.0 and later.
      • getTileHeight

        public long getTileHeight()
        Since:
        Available in iOS 11.0 and later.
      • setVertexBytes

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

        public void setVertexBuffers​(MTLBuffer[] buffers,
                                     long[] offsets,
                                     NSRange range)
      • setVertexTextures

        public void setVertexTextures​(MTLTexture[] textures,
                                      NSRange range)
      • setVertexSamplerStates

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

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

        public void setFragmentBuffers​(MTLBuffer[] buffers,
                                       long[] offsets,
                                       NSRange range)
      • setFragmentTextures

        public void setFragmentTextures​(MTLTexture[] textures,
                                        NSRange range)
      • setFragmentSamplerStates

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

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

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

        public void setVertexBuffer​(MTLBuffer buffer,
                                    long offset,
                                    long index)
      • setVertexBufferOffset

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

        protected void setVertexBuffers​(MTLBuffer.MTLBufferPtr buffers,
                                        org.robovm.rt.bro.ptr.MachineSizedUIntPtr offsets,
                                        NSRange range)
      • setVertexTexture

        public void setVertexTexture​(MTLTexture texture,
                                     long index)
      • setVertexSamplerState

        public void setVertexSamplerState​(MTLSamplerState sampler,
                                          long index)
      • setVertexSamplerState

        public void setVertexSamplerState​(MTLSamplerState sampler,
                                          float lodMinClamp,
                                          float lodMaxClamp,
                                          long index)
      • setVertexSamplerStates

        protected void setVertexSamplerStates​(MTLSamplerState.MTLSamplerStatePtr samplers,
                                              org.robovm.rt.bro.ptr.FloatPtr lodMinClamps,
                                              org.robovm.rt.bro.ptr.FloatPtr lodMaxClamps,
                                              NSRange range)
      • setViewport

        public void setViewport​(MTLViewport viewport)
      • setViewports

        public void setViewports​(MTLViewport viewports,
                                 long count)
        Since:
        Available in iOS 12.0 and later.
      • setFrontFacingWinding

        public void setFrontFacingWinding​(MTLWinding frontFacingWinding)
      • setCullMode

        public void setCullMode​(MTLCullMode cullMode)
      • setDepthClipMode

        public void setDepthClipMode​(MTLDepthClipMode depthClipMode)
        Since:
        Available in iOS 11.0 and later.
      • setDepthBias

        public void setDepthBias​(float depthBias,
                                 float slopeScale,
                                 float clamp)
      • setScissorRect

        public void setScissorRect​(MTLScissorRect rect)
      • setScissorRects

        public void setScissorRects​(MTLScissorRect scissorRects,
                                    long count)
        Since:
        Available in iOS 12.0 and later.
      • setFragmentBytes

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

        public void setFragmentBuffer​(MTLBuffer buffer,
                                      long offset,
                                      long index)
      • setFragmentBufferOffset

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

        protected void setFragmentBuffers​(MTLBuffer.MTLBufferPtr buffers,
                                          org.robovm.rt.bro.ptr.MachineSizedUIntPtr offsets,
                                          NSRange range)
      • setFragmentTexture

        public void setFragmentTexture​(MTLTexture texture,
                                       long index)
      • setFragmentSamplerState

        public void setFragmentSamplerState​(MTLSamplerState sampler,
                                            long index)
      • setFragmentSamplerState

        public void setFragmentSamplerState​(MTLSamplerState sampler,
                                            float lodMinClamp,
                                            float lodMaxClamp,
                                            long index)
      • setFragmentSamplerStates

        protected void setFragmentSamplerStates​(MTLSamplerState.MTLSamplerStatePtr samplers,
                                                org.robovm.rt.bro.ptr.FloatPtr lodMinClamps,
                                                org.robovm.rt.bro.ptr.FloatPtr lodMaxClamps,
                                                NSRange range)
      • setBlendColor

        public void setBlendColor​(float red,
                                  float green,
                                  float blue,
                                  float alpha)
      • setDepthStencilState

        public void setDepthStencilState​(MTLDepthStencilState depthStencilState)
      • setStencilReferenceValue

        public void setStencilReferenceValue​(int referenceValue)
      • setStencilReferenceValue

        public void setStencilReferenceValue​(int frontReferenceValue,
                                             int backReferenceValue)
        Since:
        Available in iOS 9.0 and later.
      • setColorStoreAction

        public void setColorStoreAction​(MTLStoreAction storeAction,
                                        long colorAttachmentIndex)
        Since:
        Available in iOS 10.0 and later.
      • setDepthStoreAction

        public void setDepthStoreAction​(MTLStoreAction storeAction)
        Since:
        Available in iOS 10.0 and later.
      • setStencilStoreAction

        public void setStencilStoreAction​(MTLStoreAction storeAction)
        Since:
        Available in iOS 10.0 and later.
      • setColorStoreActionOptions

        public void setColorStoreActionOptions​(MTLStoreActionOptions storeActionOptions,
                                               long colorAttachmentIndex)
        Since:
        Available in iOS 11.0 and later.
      • setDepthStoreActionOptions

        public void setDepthStoreActionOptions​(MTLStoreActionOptions storeActionOptions)
        Since:
        Available in iOS 11.0 and later.
      • setStencilStoreActionOptions

        public void setStencilStoreActionOptions​(MTLStoreActionOptions storeActionOptions)
        Since:
        Available in iOS 11.0 and later.
      • drawPrimitives

        public void drawPrimitives​(MTLPrimitiveType primitiveType,
                                   long vertexStart,
                                   long vertexCount,
                                   long instanceCount)
      • drawPrimitives

        public void drawPrimitives​(MTLPrimitiveType primitiveType,
                                   long vertexStart,
                                   long vertexCount)
      • drawIndexedPrimitives

        public void drawIndexedPrimitives​(MTLPrimitiveType primitiveType,
                                          long indexCount,
                                          MTLIndexType indexType,
                                          MTLBuffer indexBuffer,
                                          long indexBufferOffset,
                                          long instanceCount)
      • drawIndexedPrimitives

        public void drawIndexedPrimitives​(MTLPrimitiveType primitiveType,
                                          long indexCount,
                                          MTLIndexType indexType,
                                          MTLBuffer indexBuffer,
                                          long indexBufferOffset)
      • drawPrimitives

        public void drawPrimitives​(MTLPrimitiveType primitiveType,
                                   long vertexStart,
                                   long vertexCount,
                                   long instanceCount,
                                   long baseInstance)
        Since:
        Available in iOS 9.0 and later.
      • drawIndexedPrimitives

        public void drawIndexedPrimitives​(MTLPrimitiveType primitiveType,
                                          long indexCount,
                                          MTLIndexType indexType,
                                          MTLBuffer indexBuffer,
                                          long indexBufferOffset,
                                          long instanceCount,
                                          long baseVertex,
                                          long baseInstance)
        Since:
        Available in iOS 9.0 and later.
      • drawPrimitives

        public void drawPrimitives​(MTLPrimitiveType primitiveType,
                                   MTLBuffer indirectBuffer,
                                   long indirectBufferOffset)
        Since:
        Available in iOS 9.0 and later.
      • drawIndexedPrimitives

        public void drawIndexedPrimitives​(MTLPrimitiveType primitiveType,
                                          MTLIndexType indexType,
                                          MTLBuffer indexBuffer,
                                          long indexBufferOffset,
                                          MTLBuffer indirectBuffer,
                                          long indirectBufferOffset)
        Since:
        Available in iOS 9.0 and later.
      • updateFence

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

        public void waitForFence​(MTLFence fence,
                                 MTLRenderStages stages)
        Since:
        Available in iOS 10.0 and later.
      • setTessellationFactorBuffer

        public void setTessellationFactorBuffer​(MTLBuffer buffer,
                                                long offset,
                                                long instanceStride)
        Since:
        Available in iOS 10.0 and later.
      • setTessellationFactorScale

        public void setTessellationFactorScale​(float scale)
        Since:
        Available in iOS 10.0 and later.
      • drawPatches

        public void drawPatches​(long numberOfPatchControlPoints,
                                long patchStart,
                                long patchCount,
                                MTLBuffer patchIndexBuffer,
                                long patchIndexBufferOffset,
                                long instanceCount,
                                long baseInstance)
        Since:
        Available in iOS 10.0 and later.
      • drawPatches

        public void drawPatches​(long numberOfPatchControlPoints,
                                MTLBuffer patchIndexBuffer,
                                long patchIndexBufferOffset,
                                MTLBuffer indirectBuffer,
                                long indirectBufferOffset)
        Since:
        Available in iOS 12.0 and later.
      • drawIndexedPatches

        public void drawIndexedPatches​(long numberOfPatchControlPoints,
                                       long patchStart,
                                       long patchCount,
                                       MTLBuffer patchIndexBuffer,
                                       long patchIndexBufferOffset,
                                       MTLBuffer controlPointIndexBuffer,
                                       long controlPointIndexBufferOffset,
                                       long instanceCount,
                                       long baseInstance)
        Since:
        Available in iOS 10.0 and later.
      • drawIndexedPatches

        public void drawIndexedPatches​(long numberOfPatchControlPoints,
                                       MTLBuffer patchIndexBuffer,
                                       long patchIndexBufferOffset,
                                       MTLBuffer controlPointIndexBuffer,
                                       long controlPointIndexBufferOffset,
                                       MTLBuffer indirectBuffer,
                                       long indirectBufferOffset)
        Since:
        Available in iOS 12.0 and later.
      • setTileBytes

        public void setTileBytes​(org.robovm.rt.bro.ptr.VoidPtr bytes,
                                 long length,
                                 long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileBuffer

        public void setTileBuffer​(MTLBuffer buffer,
                                  long offset,
                                  long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileBufferOffset

        public void setTileBufferOffset​(long offset,
                                        long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileBuffers

        public void setTileBuffers​(MTLBuffer buffers,
                                   org.robovm.rt.bro.ptr.MachineSizedUIntPtr offsets,
                                   NSRange range)
        Since:
        Available in iOS 11.0 and later.
      • setTileTexture

        public void setTileTexture​(MTLTexture texture,
                                   long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileTextures

        public void setTileTextures​(MTLTexture textures,
                                    NSRange range)
        Since:
        Available in iOS 11.0 and later.
      • setTileSamplerState

        public void setTileSamplerState​(MTLSamplerState sampler,
                                        long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileSamplerStates

        public void setTileSamplerStates​(MTLSamplerState samplers,
                                         NSRange range)
        Since:
        Available in iOS 11.0 and later.
      • setTileSamplerState

        public void setTileSamplerState​(MTLSamplerState sampler,
                                        float lodMinClamp,
                                        float lodMaxClamp,
                                        long index)
        Since:
        Available in iOS 11.0 and later.
      • setTileSamplerStates

        public void setTileSamplerStates​(MTLSamplerState samplers,
                                         org.robovm.rt.bro.ptr.FloatPtr lodMinClamps,
                                         org.robovm.rt.bro.ptr.FloatPtr lodMaxClamps,
                                         NSRange range)
      • dispatchThreadsPerTile

        public void dispatchThreadsPerTile​(MTLSize threadsPerTile)
      • setThreadgroupMemoryLength

        public void setThreadgroupMemoryLength​(long length,
                                               long offset,
                                               long index)
      • 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 12.0 and later.