Package apple.metal.protocol
Interface MTLComputePipelineState
-
public interface MTLComputePipelineState[@protocol] MTLComputePipelineState A handle to compiled code for a compute function. MTLComputePipelineState is a single compute function. It can only be used with the device that it was created against.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MTLDevicedevice()[@property] device The device this resource was created against.MTLFunctionHandlefunctionHandleWithFunction(MTLFunction function)longimageblockMemoryLengthForDimensions(MTLSize imageblockDimensions)imageblockMemoryLengthForDimensions: Returns imageblock memory length for given image block dimensions.java.lang.Stringlabel()longmaxTotalThreadsPerThreadgroup()[@property] maxTotalThreadsPerThreadgroup The maximum total number of threads that can be in a single compute threadgroup.MTLComputePipelineStatenewComputePipelineStateWithAdditionalBinaryFunctionsError(NSArray<?> functions, org.moe.natj.general.ptr.Ptr<NSError> error)MTLIntersectionFunctionTablenewIntersectionFunctionTableWithDescriptor(MTLIntersectionFunctionTableDescriptor descriptor)MTLVisibleFunctionTablenewVisibleFunctionTableWithDescriptor(MTLVisibleFunctionTableDescriptor descriptor)longstaticThreadgroupMemoryLength()[@property] staticThreadgroupMemoryLength The length in bytes of threadgroup memory that is statically allocated.booleansupportIndirectCommandBuffers()[@property] supportIndirectCommandBuffers Tells whether this pipeline state is usable through an Indirect Command Buffer.longthreadExecutionWidth()[@property] threadExecutionWidth For most efficient execution, the threadgroup size should be a multiple of this when executing the kernel.
-
-
-
Method Detail
-
device
MTLDevice device()
[@property] device The device this resource was created against. This resource can only be used with this device.
-
maxTotalThreadsPerThreadgroup
long maxTotalThreadsPerThreadgroup()
[@property] maxTotalThreadsPerThreadgroup The maximum total number of threads that can be in a single compute threadgroup.
-
threadExecutionWidth
long threadExecutionWidth()
[@property] threadExecutionWidth For most efficient execution, the threadgroup size should be a multiple of this when executing the kernel.
-
imageblockMemoryLengthForDimensions
long imageblockMemoryLengthForDimensions(MTLSize imageblockDimensions)
imageblockMemoryLengthForDimensions: Returns imageblock memory length for given image block dimensions.
-
label
java.lang.String label()
-
staticThreadgroupMemoryLength
long staticThreadgroupMemoryLength()
[@property] staticThreadgroupMemoryLength The length in bytes of threadgroup memory that is statically allocated.
-
supportIndirectCommandBuffers
boolean supportIndirectCommandBuffers()
[@property] supportIndirectCommandBuffers Tells whether this pipeline state is usable through an Indirect Command Buffer.
-
functionHandleWithFunction
MTLFunctionHandle functionHandleWithFunction(MTLFunction function)
-
newComputePipelineStateWithAdditionalBinaryFunctionsError
MTLComputePipelineState newComputePipelineStateWithAdditionalBinaryFunctionsError(NSArray<?> functions, org.moe.natj.general.ptr.Ptr<NSError> error)
-
newIntersectionFunctionTableWithDescriptor
MTLIntersectionFunctionTable newIntersectionFunctionTableWithDescriptor(MTLIntersectionFunctionTableDescriptor descriptor)
-
newVisibleFunctionTableWithDescriptor
MTLVisibleFunctionTable newVisibleFunctionTableWithDescriptor(MTLVisibleFunctionTableDescriptor descriptor)
-
-