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
,org.robovm.objc.ObjCProtocol
public final class MTLDevice extends NSObject implements NSObjectProtocol
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MTLDevice.MTLDevicePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
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, willChangeValues
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getRegistryID
public long getRegistryID()
- Since:
- Available in iOS 11.0 and later.
-
getMaxThreadsPerThreadgroup
public MTLSize getMaxThreadsPerThreadgroup()
- Since:
- Available in iOS 9.0 and later.
-
getReadWriteTextureSupport
public MTLReadWriteTextureTier getReadWriteTextureSupport()
- Since:
- Available in iOS 11.0 and later.
-
getArgumentBuffersSupport
public MTLArgumentBuffersTier getArgumentBuffersSupport()
- Since:
- Available in iOS 11.0 and later.
-
isRasterOrderGroupsSupported
public boolean isRasterOrderGroupsSupported()
- Since:
- Available in iOS 11.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.
-
getMaxBufferLength
public long getMaxBufferLength()
-
newBuffer
public MTLBuffer newBuffer(byte[] bytes, MTLResourceOptions options)
-
newBuffer
public MTLBuffer newBuffer(byte[] bytes, MTLResourceOptions options, org.robovm.objc.block.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
public static MTLDevice getSystemDefaultDevice()
- Since:
- Available in iOS 8.0 and later.
-
newCommandQueue
public MTLCommandQueue newCommandQueue()
-
newCommandQueue
public MTLCommandQueue newCommandQueue(long maxCommandBufferCount)
-
heapTextureSizeAndAlign
public MTLSizeAndAlign heapTextureSizeAndAlign(MTLTextureDescriptor desc)
- Since:
- Available in iOS 10.0 and later.
-
heapBufferSizeAndAlignWithLength
public MTLSizeAndAlign heapBufferSizeAndAlignWithLength(long length, MTLResourceOptions options)
- Since:
- Available in iOS 10.0 and later.
-
newHeap
public MTLHeap newHeap(MTLHeapDescriptor descriptor)
- Since:
- Available in iOS 10.0 and later.
-
newBuffer
public MTLBuffer newBuffer(long length, MTLResourceOptions options)
-
newBuffer
protected MTLBuffer newBuffer(long pointer, long length, MTLResourceOptions options)
-
newBuffer
protected MTLBuffer newBuffer(long pointer, long length, MTLResourceOptions options, org.robovm.objc.block.VoidBlock2<java.lang.Long,java.lang.Long> deallocator)
-
newDepthStencilState
public MTLDepthStencilState newDepthStencilState(MTLDepthStencilDescriptor descriptor)
-
newTexture
public MTLTexture newTexture(MTLTextureDescriptor descriptor)
-
newTexture
public MTLTexture newTexture(MTLTextureDescriptor descriptor, IOSurface iosurface, long plane)
- Since:
- Available in iOS 11.0 and later.
-
newSamplerState
public MTLSamplerState newSamplerState(MTLSamplerDescriptor descriptor)
-
newDefaultLibrary
public MTLLibrary newDefaultLibrary()
-
newDefaultLibrary
public MTLLibrary newDefaultLibrary(NSBundle bundle) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 10.0 and later.
-
newLibraryWithFile
public MTLLibrary newLibraryWithFile(java.lang.String filepath) throws NSErrorException
- Throws:
NSErrorException
-
newLibrary
public MTLLibrary newLibrary(NSURL url) throws NSErrorException
- Throws:
NSErrorException
- Since:
- Available in iOS 11.0 and later.
-
newLibraryWithData
public MTLLibrary newLibraryWithData(DispatchData data) throws NSErrorException
- Throws:
NSErrorException
-
newLibraryWithSource
public MTLLibrary newLibraryWithSource(java.lang.String source, MTLCompileOptions options) throws NSErrorException
- Throws:
NSErrorException
-
newLibraryWithSource
public void newLibraryWithSource(java.lang.String source, MTLCompileOptions options, org.robovm.objc.block.VoidBlock2<MTLLibrary,NSError> completionHandler)
-
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, org.robovm.objc.block.VoidBlock2<MTLRenderPipelineState,NSError> completionHandler)
-
newRenderPipelineState
public void newRenderPipelineState(MTLRenderPipelineDescriptor descriptor, MTLPipelineOption options, org.robovm.objc.block.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, org.robovm.objc.block.VoidBlock2<MTLComputePipelineState,NSError> completionHandler)
-
newComputePipelineState
public void newComputePipelineState(MTLFunction computeFunction, MTLPipelineOption options, org.robovm.objc.block.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, org.robovm.objc.block.VoidBlock3<MTLComputePipelineState,MTLComputePipelineReflection,NSError> completionHandler)
- Since:
- Available in iOS 9.0 and later.
-
newFence
public MTLFence newFence()
- Since:
- Available in iOS 10.0 and later.
-
supportsFeatureSet
public boolean supportsFeatureSet(MTLFeatureSet featureSet)
-
supportsTextureSampleCount
public boolean supportsTextureSampleCount(long sampleCount)
- Since:
- Available in iOS 9.0 and later.
-
minimumLinearTextureAlignmentForPixelFormat
public long minimumLinearTextureAlignmentForPixelFormat(MTLPixelFormat format)
- Since:
- Available in iOS 11.0 and later.
-
minimumTextureBufferAlignmentForPixelFormat
public long minimumTextureBufferAlignmentForPixelFormat(MTLPixelFormat format)
- 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, org.robovm.objc.block.VoidBlock3<MTLRenderPipelineState,MTLRenderPipelineReflection,NSError> completionHandler)
- Since:
- Available in iOS 11.0 and later.
-
getDefaultSamplePositions
public void getDefaultSamplePositions(MTLSamplePosition positions, long count)
- Since:
- Available in iOS 11.0 and later.
-
newArgumentEncoder
public MTLArgumentEncoder newArgumentEncoder(NSArray<MTLArgumentDescriptor> arguments)
- Since:
- Available in iOS 11.0 and later.
-
newIndirectCommand
public MTLIndirectCommandBuffer newIndirectCommand(MTLIndirectCommandBufferDescriptor descriptor, long maxCount, MTLResourceOptions options)
- Since:
- Available in iOS 12.0 and later.
-
newEvent
public MTLEvent newEvent()
- Since:
- Available in iOS 12.0 and later.
-
newSharedEvent
public MTLSharedEvent newSharedEvent()
- Since:
- Available in iOS 12.0 and later.
-
newSharedEvent
public MTLSharedEvent newSharedEvent(MTLSharedEventHandle sharedEventHandle)
- Since:
- Available in iOS 12.0 and later.
-
-