public interface MTLArgumentEncoder
MTLArgumentEncoder encodes buffer, texture, sampler, and constant data into a buffer.
| Modifier and Type | Method and Description |
|---|---|
long |
alignment()
[@property] alignment
|
org.moe.natj.general.ptr.VoidPtr |
constantDataAtIndex(long index)
constantDataAtIndex:
|
MTLDevice |
device()
[@property] device
|
long |
encodedLength()
[@property] encodedLength
|
java.lang.String |
label()
[@property] label
|
MTLArgumentEncoder |
newArgumentEncoderForBufferAtIndex(long index)
newArgumentEncoderForBufferAtIndex:
|
void |
setAccelerationStructureAtIndex(MTLAccelerationStructure accelerationStructure,
long index) |
void |
setArgumentBufferOffset(MTLBuffer argumentBuffer,
long offset)
setArgumentBuffer:offset:
|
void |
setArgumentBufferStartOffsetArrayElement(MTLBuffer argumentBuffer,
long startOffset,
long arrayElement)
* @method setArgumentBuffer:offset:arrayElement:
* @brief Sets the destination buffer, starting offset and specific array element arguments will be encoded into.
|
void |
setBufferOffsetAtIndex(MTLBuffer buffer,
long offset,
long index)
setBuffer:offset:atIndex:
|
void |
setBuffersOffsetsWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffers,
org.moe.natj.general.ptr.ConstNUIntPtr offsets,
NSRange range)
setBuffers:offsets:withRange:
|
void |
setComputePipelineStateAtIndex(MTLComputePipelineState pipeline,
long index)
setComputePipelineState:atIndex
|
void |
setComputePipelineStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> pipelines,
NSRange range)
setComputePipelineStates:withRange
|
void |
setIndirectCommandBufferAtIndex(MTLIndirectCommandBuffer indirectCommandBuffer,
long index)
setIndirectCommandBuffer:atIndex
|
void |
setIndirectCommandBuffersWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffers,
NSRange range)
setIndirectCommandBuffers:withRange:
|
void |
setIntersectionFunctionTableAtIndex(MTLIntersectionFunctionTable intersectionFunctionTable,
long index)
setIntersectionFunctionTable:atIndex:
|
void |
setIntersectionFunctionTablesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> intersectionFunctionTables,
NSRange range)
setIntersectionFunctionTables:withRange:
|
void |
setLabel(java.lang.String value)
[@property] label
|
void |
setRenderPipelineStateAtIndex(MTLRenderPipelineState pipeline,
long index)
setRenderPipelineState:atIndex
|
void |
setRenderPipelineStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> pipelines,
NSRange range)
setRenderPipelineStates:withRange
|
void |
setSamplerStateAtIndex(MTLSamplerState sampler,
long index)
setSamplerState:atIndex:
|
void |
setSamplerStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> samplers,
NSRange range)
setSamplerStates:withRange:
|
void |
setTextureAtIndex(MTLTexture texture,
long index)
setTexture:atIndex:
|
void |
setTexturesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> textures,
NSRange range)
setTextures:withRange:
|
void |
setVisibleFunctionTableAtIndex(MTLVisibleFunctionTable visibleFunctionTable,
long index)
setVisibleFunctionTable:atIndex:
|
void |
setVisibleFunctionTablesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> visibleFunctionTables,
NSRange range)
setVisibleFunctionTables:withRange:
|
long alignment()
The alignment in bytes required to store the encoded resource bindings.
org.moe.natj.general.ptr.VoidPtr constantDataAtIndex(long index)
Returns a pointer to the constant data at the given bind point index.
MTLDevice device()
The device this argument encoder was created against.
long encodedLength()
The number of bytes required to store the encoded resource bindings.
java.lang.String label()
A string to help identify this object.
void setArgumentBufferOffset(MTLBuffer argumentBuffer, long offset)
Sets the destination buffer and offset at which the arguments will be encoded.
void setArgumentBufferStartOffsetArrayElement(MTLBuffer argumentBuffer, long startOffset, long arrayElement)
void setBufferOffsetAtIndex(MTLBuffer buffer, long offset, long index)
Set a buffer at the given bind point index.
void setBuffersOffsetsWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffers,
org.moe.natj.general.ptr.ConstNUIntPtr offsets,
NSRange range)
Set an array of buffers at the given bind point index range.
void setLabel(java.lang.String value)
A string to help identify this object.
void setSamplerStateAtIndex(MTLSamplerState sampler, long index)
Set a sampler at the given bind point index.
void setSamplerStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> samplers,
NSRange range)
Set an array of samplers at the given bind point index range.
void setTextureAtIndex(MTLTexture texture, long index)
Set a texture at the given bind point index.
void setTexturesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> textures,
NSRange range)
Set an array of textures at the given bind point index range.
MTLArgumentEncoder newArgumentEncoderForBufferAtIndex(long index)
Returns a pointer to a new MTLArgumentEncoder that can be used to encode the an argument buffer in the buffer associated with a given index. Returns nil if the resource at the given index is not an argument buffer.
void setComputePipelineStateAtIndex(MTLComputePipelineState pipeline, long index)
Sets a compute pipeline state at a given bind point index
void setComputePipelineStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> pipelines,
NSRange range)
Set an array of compute pipeline states at a given bind point index range
void setIndirectCommandBufferAtIndex(MTLIndirectCommandBuffer indirectCommandBuffer, long index)
Sets an indirect command buffer at a given bind point index
void setIndirectCommandBuffersWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffers,
NSRange range)
Set an array of indirect command buffers at the given bind point index range.
void setRenderPipelineStateAtIndex(MTLRenderPipelineState pipeline, long index)
Sets a render pipeline state at a given bind point index
void setRenderPipelineStatesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> pipelines,
NSRange range)
Set an array of render pipeline states at a given bind point index range
void setAccelerationStructureAtIndex(MTLAccelerationStructure accelerationStructure, long index)
void setIntersectionFunctionTableAtIndex(MTLIntersectionFunctionTable intersectionFunctionTable, long index)
Set an intersection function table at the given buffer index
void setIntersectionFunctionTablesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> intersectionFunctionTables,
NSRange range)
Set intersection function tables at the given buffer index range
void setVisibleFunctionTableAtIndex(MTLVisibleFunctionTable visibleFunctionTable, long index)
Set a visible function table at the given buffer index
void setVisibleFunctionTablesWithRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> visibleFunctionTables,
NSRange range)
Set visible function tables at the given buffer index range