Package org.robovm.apple.metal
Class MTLDevice
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.metal.MTLDevice
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public final class MTLDevice extends NSObject implements NSObjectProtocol
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMTLDevice.MTLDevicePtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Constructor Description MTLDevice() -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
MTLDevice
public MTLDevice()
-
-
Method Details
-
getName
-
getRegistryID
public long getRegistryID()- Since:
- Available in iOS 11.0 and later.
-
getMaxThreadsPerThreadgroup
- Since:
- Available in iOS 9.0 and later.
-
hasUnifiedMemory
public boolean hasUnifiedMemory()- Since:
- Available in iOS 13.0 and later.
-
getReadWriteTextureSupport
- Since:
- Available in iOS 11.0 and later.
-
getArgumentBuffersSupport
- Since:
- Available in iOS 11.0 and later.
-
isRasterOrderGroupsSupported
public boolean isRasterOrderGroupsSupported()- Since:
- Available in iOS 11.0 and later.
-
supports32BitFloatFiltering
public boolean supports32BitFloatFiltering()- Since:
- Available in iOS 14.0 and later.
-
supports32BitMSAA
public boolean supports32BitMSAA()- Since:
- Available in iOS 14.0 and later.
-
supportsQueryTextureLOD
public boolean supportsQueryTextureLOD()- Since:
- Available in iOS 14.0 and later.
-
supportsPullModelInterpolation
public boolean supportsPullModelInterpolation()- Since:
- Available in iOS 14.0 and later.
-
isBarycentricCoordsSupported
public boolean isBarycentricCoordsSupported()- Since:
- Available in iOS 14.0 and later.
-
supportsShaderBarycentricCoordinates
public boolean supportsShaderBarycentricCoordinates()- Since:
- Available in iOS 14.0 and later.
-
getCurrentAllocatedSize
public long getCurrentAllocatedSize()- Since:
- Available in iOS 11.0 and later.
-
getMaxThreadgroupMemoryLength
public long getMaxThreadgroupMemoryLength()- Since:
- Available in iOS 11.0 and later.
-
getMaxArgumentBufferSamplerCount
public long getMaxArgumentBufferSamplerCount()- Since:
- Available in iOS 12.0 and later.
-
isProgrammableSamplePositionsSupported
public boolean isProgrammableSamplePositionsSupported()- Since:
- Available in iOS 11.0 and later.
-
getSparseTileSizeInBytes
public long getSparseTileSizeInBytes()- Since:
- Available in iOS 13.0 and later.
-
getMaxBufferLength
public long getMaxBufferLength()- Since:
- Available in iOS 12.0 and later.
-
getCounterSets
- Since:
- Available in iOS 14.0 and later.
-
supportsDynamicLibraries
public boolean supportsDynamicLibraries()- Since:
- Available in iOS 14.0 and later.
-
supportsRenderDynamicLibraries
public boolean supportsRenderDynamicLibraries()- Since:
- Available in iOS 15.0 and later.
-
supportsRaytracing
public boolean supportsRaytracing()- Since:
- Available in iOS 14.0 and later.
-
supportsFunctionPointers
public boolean supportsFunctionPointers()- Since:
- Available in iOS 14.0 and later.
-
supportsFunctionPointersFromRender
public boolean supportsFunctionPointersFromRender()- Since:
- Available in iOS 15.0 and later.
-
supportsRaytracingFromRender
public boolean supportsRaytracingFromRender()- Since:
- Available in iOS 15.0 and later.
-
supportsPrimitiveMotionBlur
public boolean supportsPrimitiveMotionBlur()- Since:
- Available in iOS 14.0 and later.
-
newBuffer
-
newBuffer
public MTLBuffer newBuffer(byte[] bytes, MTLResourceOptions options, VoidBlock1<byte[]> deallocator) -
newRenderPipelineState
public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options) throws NSErrorException- Throws:
NSErrorException
-
newComputePipelineState
public MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options) throws NSErrorException- Throws:
NSErrorException
-
getSystemDefaultDevice
-
newCommandQueue
-
newCommandQueue
-
heapTextureSizeAndAlign
- Since:
- Available in iOS 10.0 and later.
-
heapBufferSizeAndAlignWithLength
- Since:
- Available in iOS 10.0 and later.
-
newHeap
- Since:
- Available in iOS 10.0 and later.
-
newBuffer
-
newBuffer
-
newBuffer
protected MTLBuffer newBuffer(long pointer, long length, MTLResourceOptions options, VoidBlock2<Long,Long> deallocator) -
newDepthStencilState
-
newTexture
-
newTexture
- Since:
- Available in iOS 11.0 and later.
-
newSharedTexture
- Since:
- Available in iOS 13.0 and later.
-
newSharedTexture
- Since:
- Available in iOS 13.0 and later.
-
newSamplerState
-
newDefaultLibrary
-
newDefaultLibrary
- Throws:
NSErrorException- Since:
- Available in iOS 10.0 and later.
-
newLibraryWithFile
- Throws:
NSErrorException
-
newLibrary
- Throws:
NSErrorException- Since:
- Available in iOS 11.0 and later.
-
newLibraryWithData
- Throws:
NSErrorException
-
newLibraryWithSource
public MTLLibrary newLibraryWithSource(String source, MTLCompileOptions options) throws NSErrorException- Throws:
NSErrorException
-
newLibraryWithSource
public void newLibraryWithSource(String source, MTLCompileOptions options, VoidBlock2<MTLLibrary,NSError> completionHandler) -
newLibrary
- Since:
- Available in iOS 15.0 and later.
-
newLibrary
public void newLibrary(MTLStitchedLibraryDescriptor descriptor, VoidBlock2<MTLLibrary,NSError> completionHandler)- Since:
- Available in iOS 15.0 and later.
-
newRenderPipelineState
public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor) throws NSErrorException- Throws:
NSErrorException
-
newRenderPipelineState
public MTLRenderPipelineState newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection) throws NSErrorException- Throws:
NSErrorException
-
newRenderPipelineState
public void newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, VoidBlock2<MTLRenderPipelineState,NSError> completionHandler) -
newRenderPipelineState
public void newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, VoidBlock3<MTLRenderPipelineState,MTLRenderPipelineReflection,NSError> completionHandler) -
newComputePipelineState
public MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction) throws NSErrorException- Throws:
NSErrorException
-
newComputePipelineState
public MTLComputePipelineState newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection) throws NSErrorException- Throws:
NSErrorException
-
newComputePipelineState
public void newComputePipelineState(MTLFunction computeFunction, VoidBlock2<MTLComputePipelineState,NSError> completionHandler) -
newComputePipelineState
public void newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, VoidBlock3<MTLComputePipelineState,MTLComputePipelineReflection,NSError> completionHandler) -
newComputePipelineState
public MTLComputePipelineState newComputePipelineState(MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, MTLComputePipelineReflection.MTLComputePipelineReflectionPtr reflection) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 9.0 and later.
-
newComputePipelineState
public void newComputePipelineState(MTLComputePipelineDescriptor descriptor, MTLPipelineOption options, VoidBlock3<MTLComputePipelineState,MTLComputePipelineReflection,NSError> completionHandler)- Since:
- Available in iOS 9.0 and later.
-
newFence
- Since:
- Available in iOS 10.0 and later.
-
supportsFeatureSet
-
supportsFamily
- Since:
- Available in iOS 13.0 and later.
-
supportsTextureSampleCount
public boolean supportsTextureSampleCount(long sampleCount)- Since:
- Available in iOS 9.0 and later.
-
minimumLinearTextureAlignmentForPixelFormat
- Since:
- Available in iOS 11.0 and later.
-
minimumTextureBufferAlignmentForPixelFormat
- Since:
- Available in iOS 12.0 and later.
-
newRenderPipelineState
public MTLRenderPipelineState newRenderPipelineState(MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, MTLRenderPipelineReflection.MTLRenderPipelineReflectionPtr reflection) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 11.0 and later.
-
newRenderPipelineState
public void newRenderPipelineState(MTLTileRenderPipelineDescriptor descriptor, MTLPipelineOption options, VoidBlock3<MTLRenderPipelineState,MTLRenderPipelineReflection,NSError> completionHandler)- Since:
- Available in iOS 11.0 and later.
-
getDefaultSamplePositions
- Since:
- Available in iOS 11.0 and later.
-
newArgumentEncoder
- Since:
- Available in iOS 11.0 and later.
-
supportsRasterizationRateMap
public boolean supportsRasterizationRateMap(long layerCount)- Since:
- Available in iOS 13.0 and later.
-
newRasterizationRateMap
public MTLRasterizationRateMap newRasterizationRateMap(MTLRasterizationRateMapDescriptor descriptor)- Since:
- Available in iOS 13.0 and later.
-
newIndirectCommand
public MTLIndirectCommandBuffer newIndirectCommand(MTLIndirectCommandBufferDescriptor descriptor, long maxCount, MTLResourceOptions options)- Since:
- Available in iOS 12.0 and later.
-
newEvent
- Since:
- Available in iOS 12.0 and later.
-
newSharedEvent
- Since:
- Available in iOS 12.0 and later.
-
newSharedEvent
- Since:
- Available in iOS 12.0 and later.
-
sparseTileSizeWithTextureType
public MTLSize sparseTileSizeWithTextureType(MTLTextureType textureType, MTLPixelFormat pixelFormat, long sampleCount)- Since:
- Available in iOS 13.0 and later.
-
convertSparsePixelRegions
public void convertSparsePixelRegions(MTLRegion pixelRegions, MTLRegion tileRegions, MTLSize tileSize, MTLSparseTextureRegionAlignmentMode mode, long numRegions)- Since:
- Available in iOS 13.0 and later.
-
convertSparseTileRegions
public void convertSparseTileRegions(MTLRegion tileRegions, MTLRegion pixelRegions, MTLSize tileSize, long numRegions)- Since:
- Available in iOS 13.0 and later.
-
newCounterSampleBuffer
public MTLCounterSampleBuffer newCounterSampleBuffer(MTLCounterSampleBufferDescriptor descriptor, NSError.NSErrorPtr error)- Since:
- Available in iOS 14.0 and later.
-
sampleTimestamps
- Since:
- Available in iOS 14.0 and later.
-
supportsCounterSampling
- Since:
- Available in iOS 14.0 and later.
-
supportsVertexAmplificationCount
public boolean supportsVertexAmplificationCount(long count)- Since:
- Available in iOS 13.0 and later.
-
newDynamicLibrary
- Since:
- Available in iOS 14.0 and later.
-
newDynamicLibrary
- Since:
- Available in iOS 14.0 and later.
-
newBinaryArchive
public MTLBinaryArchive newBinaryArchive(MTLBinaryArchiveDescriptor descriptor, NSError.NSErrorPtr error)- Since:
- Available in iOS 14.0 and later.
-
accelerationStructureSizes
public MTLAccelerationStructureSizes accelerationStructureSizes(MTLAccelerationStructureDescriptor descriptor)- Since:
- Available in iOS 14.0 and later.
-
newAccelerationStructure
- Since:
- Available in iOS 14.0 and later.
-
newAccelerationStructure
public MTLAccelerationStructure newAccelerationStructure(MTLAccelerationStructureDescriptor descriptor)- Since:
- Available in iOS 14.0 and later.
-