- drawIndexedPatches
void drawIndexedPatches(NSUInteger numberOfPatchControlPoints, NSUInteger patchStart, NSUInteger patchCount, MTLBuffer patchIndexBuffer, NSUInteger patchIndexBufferOffset, MTLBuffer controlPointIndexBuffer, NSUInteger controlPointIndexBufferOffset, NSUInteger instanceCount, NSUInteger baseInstance)
Encodes a command to render a number of instances of tessellated patches, using a control point index buffer.
- drawIndexedPrimitives
void drawIndexedPrimitives(MTLPrimitiveType , NSUInteger indexCount, MTLIndexType indexType, MTLBuffer indexBuffer, NSUInteger indexBufferOffset, NSUInteger instanceCount, NSInteger baseVertex, NSUInteger baseInstance)
Encodes a command to render a number of instances of primitives using an index list specified in a buffer, starting from the base vertex of the base instance.
- drawIndexedPrimitives
void drawIndexedPrimitives(MTLPrimitiveType , NSUInteger indexCount, MTLIndexType indexType, MTLBuffer indexBuffer, NSUInteger indexBufferOffset, NSUInteger instanceCount)
Encodes a command to render a number of instances of primitives using an index list specified in a buffer.
- drawIndexedPrimitives
void drawIndexedPrimitives(MTLPrimitiveType , NSUInteger indexCount, MTLIndexType indexType, MTLBuffer indexBuffer, NSUInteger indexBufferOffset)
Encodes a command to render one instance of primitives using an index list specified in a buffer.
- drawPatches
void drawPatches(NSUInteger numberOfPatchControlPoints, NSUInteger patchStart, NSUInteger patchCount, MTLBuffer patchIndexBuffer, NSUInteger patchIndexBufferOffset, NSUInteger instanceCount, NSUInteger baseInstance)
Encodes a command to render a number of instances of tessellated patches.
- drawPrimitives
void drawPrimitives(MTLPrimitiveType , NSUInteger vertexStart, NSUInteger vertexCount, NSUInteger instanceCount, NSUInteger baseInstance)
Encodes a command to render a number of instances of primitives using vertex data in contiguous array elements, starting from the base instance.
- drawPrimitives
void drawPrimitives(MTLPrimitiveType , NSUInteger vertexStart, NSUInteger vertexCount, NSUInteger instanceCount)
Encodes a command to render a number of instances of primitives using vertex data in contiguous array elements.
- drawPrimitives
void drawPrimitives(MTLPrimitiveType , NSUInteger vertexStart, NSUInteger vertexCount)
Encodes a command to render one instance of primitives using vertex data in contiguous array elements.
- endEncoding
void endEncoding()
Declares that all command generation from the encoder is completed.
- setCullMode
void setCullMode(MTLCullMode )
Specifies whether to cull primitives when front- or back-facing.
- setFragmentAccelerationStructure
void setFragmentAccelerationStructure(MTLAccelerationStructure , NSUInteger bufferIndex)
Sets an acceleration structure for the fragment function.
- setFragmentBuffer
void setFragmentBuffer(MTLBuffer , NSUInteger offset, NSUInteger index)
Sets a buffer for the fragment function.
- setFragmentBufferOffset
void setFragmentBufferOffset(NSUInteger offset, NSInteger index)
Sets where the data begins in a buffer already bound to the fragment shader.
- setFragmentBuffers
void setFragmentBuffers(const(MTLBuffer)* , const(NSUInteger)* offsets, NSRange range)
Sets an array of buffers for the fragment function in a range of indices in the buffer argument table.
- setFragmentBytes
void setFragmentBytes(const(void)* bytes, NSUInteger length, NSUInteger index)
Sets a block of data for the fragment shader.
- setFragmentIntersectionFunctionTable
void setFragmentIntersectionFunctionTable(MTLIntersectionFunctionTable , NSUInteger bufferIndex)
Sets a intersection function table for the fragment function.
- setFragmentIntersectionFunctionTables
void setFragmentIntersectionFunctionTables(const(MTLIntersectionFunctionTable*) , NSRange range)
Sets an array of intersection function tables for the fragment function.
- setFragmentSamplerState
void setFragmentSamplerState(MTLSamplerState , NSUInteger index)
Sets a sampler state for the fragment function at an index in the sampler state argument table.
- setFragmentSamplerState
void setFragmentSamplerState(MTLSamplerState , float lodMinClamp, float lodMaxClamp, NSUInteger index)
Sets a sampler state for the fragment function at an index in the sampler state argument table, specifying clamp values for the minimum and maximum level of detail.
- setFragmentSamplerStates
void setFragmentSamplerStates(const(MTLSamplerState)* , NSRange range)
Sets an array of sampler states for the fragment function in a range of indices in the sampler state argument table.
- setFragmentSamplerStates
void setFragmentSamplerStates(const(MTLSamplerState)* , const(float)* lodMinClamps, const(float)* lodMaxClamps, NSRange range)
Sets sampler states for the fragment function in a range of indices in the sampler state argument table, specifying clamp values for levels of detail.
- setFragmentTexture
void setFragmentTexture(MTLTexture , NSUInteger index)
Sets a texture for the fragment function at an index in the texture argument table.
- setFragmentTextures
void setFragmentTextures(const(MTLTexture)* , NSRange range)
Sets an array of textures for the fragment function in a range of indices in the texture argument table.
- setFragmentVisibleFunctionTable
void setFragmentVisibleFunctionTable(MTLVisibleFunctionTable , NSUInteger bufferIndex)
Sets a visible function table for the fragment function.
- setFragmentVisibleFunctionTables
void setFragmentVisibleFunctionTables(const(MTLVisibleFunctionTable)* , NSRange range)
Sets an array of visible function tables for the fragment function.
- setFrontFaceWinding
void setFrontFaceWinding(MTLWinding )
Sets the winding order of front-facing primitives.
- setRenderPipelineState
void setRenderPipelineState(MTLRenderPipelineState pipelineState)
Sets the current render pipeline state object.
- setTessellationFactorBuffer
void setTessellationFactorBuffer(MTLBuffer , NSUInteger offset, NSUInteger instanceStride)
Sets the per-patch tessellation factors buffer for the tessellator.
- setTessellationFactorScale
void setTessellationFactorScale(float )
Sets the scale factor applied to the per-patch tessellation factors.
- setTriangleFillMode
void setTriangleFillMode(MTLTriangleFillMode )
Sets how to rasterize triangle and triangle strip primitives.
- setVertexAccelerationStructure
void setVertexAccelerationStructure(MTLAccelerationStructure , NSUInteger bufferIndex)
Sets an acceleration structure for the vertex function.
- setVertexAmplificationCount
void setVertexAmplificationCount(NSUInteger count, const(MTLVertexAmplificationViewMapping)* viewMappings)
Sets the number of output vertices for each input vertex, along with offsets into the layer and viewport lists.
- setVertexBuffer
void setVertexBuffer(MTLBuffer vertexBuffer, NSUInteger offset, NSUInteger index)
Sets a buffer for the vertex function.
- setVertexBufferOffset
void setVertexBufferOffset(NSUInteger offset, NSUInteger index)
Sets where the data begins in a buffer already bound to the vertex shader.
- setVertexBuffers
void setVertexBuffers(const(MTLBuffer)* buffers, const(NSUInteger)* offsets, NSRange range)
Sets an array of buffers for the vertex function.
- setVertexBytes
void setVertexBytes(const(void)* bytes, NSUInteger length, NSUInteger index)
Sets a block of data for the vertex shader.
- setVertexIntersectionFunctionTable
void setVertexIntersectionFunctionTable(MTLIntersectionFunctionTable , NSUInteger index)
Sets a intersection function table for the vertex function.
- setVertexIntersectionFunctionTables
void setVertexIntersectionFunctionTables(const(MTLIntersectionFunctionTable)* , NSRange range)
Sets an array of intersection function tables for the vertex function.
- setVertexSamplerState
void setVertexSamplerState(MTLSamplerState state, float lodMinClamp, float lodMaxClamp, NSUInteger index)
Sets a sampler for the vertex function.
Sets a sampler for the vertex function, specifying clamp values for the level of detail.
- setVertexSamplerStates
void setVertexSamplerStates(const(MTLSamplerState)* samplers, NSRange range)
Sets multiple samplers for the vertex function.
- setVertexSamplerStates
void setVertexSamplerStates(const(MTLSamplerState)* samplers, const(float)* lodMinClamps, const(float)* lodMaxClamps, NSRange range)
Sets multiple samplers for the vertex function, specifying clamp values for the level of detail of each sampler.
- setVertexTexture
void setVertexTexture(MTLTexture texture, NSUInteger index)
Sets a texture for the vertex function.
- setVertexTextures
void setVertexTextures(const(MTLTexture)* textures, NSRange range)
Sets an array of textures for the vertex function.
- setVertexVisibleFunctionTable
void setVertexVisibleFunctionTable(MTLVisibleFunctionTable , NSUInteger bufferIndex)
Sets a visible function table for the vertex function.
- setVertexVisibleFunctionTables
void setVertexVisibleFunctionTables(const(MTLVisibleFunctionTable)* , NSRange range)
Sets an array of visible function tables for the vertex function.
- setViewport
void setViewport(MTLViewport )
Undocumented in source.