Package org.robovm.apple.metalps
Class MPSImage
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.metalps.MPSImage
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
MPSTemporaryImage
public class MPSImage extends NSObject
- Since:
- Available in iOS 10.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPSImage.MPSImagePtr
-
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 Modifier Constructor Description protected
MPSImage()
protected
MPSImage(NSObject.Handle h, long handle)
protected
MPSImage(NSObject.SkipInit skipInit)
MPSImage(MTLDevice device, MPSImageDescriptor imageDescriptor)
MPSImage(MTLTexture texture, long featureChannels)
MPSImage(MPSImage parent, NSRange sliceRange, long featureChannels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSArray<MPSImage>
batchRepresentation()
NSArray<MPSImage>
batchRepresentation(NSRange subRange)
static MPSImageAllocator
defaultAllocator()
MTLDevice
getDevice()
long
getFeatureChannels()
long
getHeight()
java.lang.String
getLabel()
long
getNumberOfImages()
MPSImage
getParent()
MTLPixelFormat
getPixelFormat()
long
getPixelSize()
long
getPrecision()
MTLTexture
getTexture()
MTLTextureType
getTextureType()
MTLTextureUsage
getUsage()
long
getWidth()
protected long
init(MTLDevice device, MPSImageDescriptor imageDescriptor)
protected long
init(MTLTexture texture, long featureChannels)
protected long
init(MPSImage parent, NSRange sliceRange, long featureChannels)
void
readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long imageIndex)
void
readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, long bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
void
readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
long
resourceSize()
void
setLabel(java.lang.String v)
MPSPurgeableState
setPurgeableState(MPSPurgeableState state)
MPSImage
subImage(NSRange range)
void
synchronizeOnCommandBuffer(MTLCommandBuffer commandBuffer)
void
writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long imageIndex)
void
writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, long bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
void
writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
-
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
-
-
-
-
Constructor Detail
-
MPSImage
protected MPSImage()
-
MPSImage
protected MPSImage(NSObject.Handle h, long handle)
-
MPSImage
protected MPSImage(NSObject.SkipInit skipInit)
-
MPSImage
public MPSImage(MTLDevice device, MPSImageDescriptor imageDescriptor)
-
MPSImage
public MPSImage(MTLTexture texture, long featureChannels)
-
-
Method Detail
-
getDevice
public MTLDevice getDevice()
-
getWidth
public long getWidth()
-
getHeight
public long getHeight()
-
getFeatureChannels
public long getFeatureChannels()
-
getNumberOfImages
public long getNumberOfImages()
-
getTextureType
public MTLTextureType getTextureType()
-
getPixelFormat
public MTLPixelFormat getPixelFormat()
-
getPrecision
public long getPrecision()
-
getUsage
public MTLTextureUsage getUsage()
-
getPixelSize
public long getPixelSize()
-
getTexture
public MTLTexture getTexture()
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String v)
-
getParent
public MPSImage getParent()
-
init
protected long init(MTLDevice device, MPSImageDescriptor imageDescriptor)
-
init
protected long init(MTLTexture texture, long featureChannels)
-
resourceSize
public long resourceSize()
- Since:
- Available in iOS 11.0 and later.
-
setPurgeableState
public MPSPurgeableState setPurgeableState(MPSPurgeableState state)
-
readBytes
public void readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
- Since:
- Available in iOS 11.0 and later.
-
writeBytes
public void writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
- Since:
- Available in iOS 11.0 and later.
-
readBytes
public void readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, long bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
- Since:
- Available in iOS 11.0 and later.
-
writeBytes
public void writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long bytesPerRow, long bytesPerImage, MTLRegion region, MPSImageReadWriteParams featureChannelInfo, long imageIndex)
- Since:
- Available in iOS 11.3 and later.
-
readBytes
public void readBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long imageIndex)
- Since:
- Available in iOS 11.0 and later.
-
writeBytes
public void writeBytes(org.robovm.rt.bro.ptr.VoidPtr dataBytes, MPSDataLayout dataLayout, long imageIndex)
- Since:
- Available in iOS 11.0 and later.
-
synchronizeOnCommandBuffer
public void synchronizeOnCommandBuffer(MTLCommandBuffer commandBuffer)
- Since:
- Available in iOS 11.3 and later.
-
defaultAllocator
public static MPSImageAllocator defaultAllocator()
-
-