NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MTLTextureDescriptor(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MTLTextureDescriptor |
alloc() |
static MTLTextureDescriptor |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowGPUOptimizedContents()
[@property] allowGPUOptimizedContents
|
long |
arrayLength()
[@property] arrayLength
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
long |
compressionType()
[@property] compressionType
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
cpuCacheMode()
[@property] cpuCacheMode
|
static java.lang.String |
debugDescription_static() |
long |
depth()
[@property] depth
|
static java.lang.String |
description_static() |
static long |
hash_static() |
long |
hazardTrackingMode()
[@property] hazardTrackingMode
|
long |
height()
[@property] height
|
MTLTextureDescriptor |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
mipmapLevelCount()
[@property] mipmapLevelCount
|
static MTLTextureDescriptor |
new_objc() |
long |
pixelFormat()
[@property] pixelFormat
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
resourceOptions()
[@property] resourceOptions
|
long |
sampleCount()
[@property] sampleCount
|
void |
setAllowGPUOptimizedContents(boolean value)
[@property] allowGPUOptimizedContents
|
void |
setArrayLength(long value)
[@property] arrayLength
|
void |
setCompressionType(long value)
[@property] compressionType
|
void |
setCpuCacheMode(long value)
[@property] cpuCacheMode
|
void |
setDepth(long value)
[@property] depth
|
void |
setHazardTrackingMode(long value)
[@property] hazardTrackingMode
|
void |
setHeight(long value)
[@property] height
|
void |
setMipmapLevelCount(long value)
[@property] mipmapLevelCount
|
void |
setPixelFormat(long value)
[@property] pixelFormat
|
void |
setResourceOptions(long value)
[@property] resourceOptions
|
void |
setSampleCount(long value)
[@property] sampleCount
|
void |
setStorageMode(long value)
[@property] storageMode
|
void |
setSwizzle(MTLTextureSwizzleChannels value)
[@property] swizzle
|
void |
setTextureType(long value)
[@property] type
|
void |
setUsage(long value)
[@property] usage
|
static void |
setVersion_static(long aVersion) |
void |
setWidth(long value)
[@property] width
|
long |
storageMode()
[@property] storageMode
|
static org.moe.natj.objc.Class |
superclass_static() |
MTLTextureSwizzleChannels |
swizzle()
[@property] swizzle
|
static MTLTextureDescriptor |
texture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat,
long width,
long height,
boolean mipmapped)
texture2DDescriptorWithPixelFormat:width:height:mipmapped:
|
static MTLTextureDescriptor |
textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat,
long width,
long resourceOptions,
long usage)
textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage:
|
static MTLTextureDescriptor |
textureCubeDescriptorWithPixelFormatSizeMipmapped(long pixelFormat,
long size,
boolean mipmapped)
textureCubeDescriptorWithPixelFormat:size:mipmapped:
|
long |
textureType()
[@property] type
|
long |
usage()
[@property] usage
|
static long |
version_static() |
long |
width()
[@property] width
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected MTLTextureDescriptor(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MTLTextureDescriptor alloc()
public static MTLTextureDescriptor allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static MTLTextureDescriptor new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static MTLTextureDescriptor texture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat, long width, long height, boolean mipmapped)
Create a TextureDescriptor for a common 2D texture.
public static MTLTextureDescriptor textureCubeDescriptorWithPixelFormatSizeMipmapped(long pixelFormat, long size, boolean mipmapped)
Create a TextureDescriptor for a common Cube texture.
public static long version_static()
public long arrayLength()
The number of array elements to allocate. The default value is 1.
When allocating any non-Array texture type, arrayLength has to be 1. Otherwise it must be set to something greater than 1 and less than 2048.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long cpuCacheMode()
Options to specify CPU cache mode of texture resource.
public long depth()
The depth of the texture to create. The default value is 1.
depth When allocating any texture types other than 3D, depth must be 1.
public long height()
The height of the texture to create. The default value is 1.
height If allocating a 1D texture, height must be 1.
public MTLTextureDescriptor init()
public long mipmapLevelCount()
The number of mipmap levels to allocate. The default value is 1.
When creating Buffer and Multisample textures, mipmapLevelCount must be 1.
public long pixelFormat()
The pixel format to use when allocating this texture. This is also the pixel format that will be used to when the caller writes or reads pixels from this texture. The default value is MTLPixelFormatRGBA8Unorm.
public long resourceOptions()
Options to control memory allocation parameters, etc.
Contains a packed set of the storageMode, cpuCacheMode and hazardTrackingMode properties.
public long sampleCount()
The number of samples in the texture to create. The default value is 1.
When creating Buffer textures sampleCount must be 1. Implementations may round sample counts up to the next supported value.
public void setArrayLength(long value)
The number of array elements to allocate. The default value is 1.
When allocating any non-Array texture type, arrayLength has to be 1. Otherwise it must be set to something greater than 1 and less than 2048.
public void setCpuCacheMode(long value)
Options to specify CPU cache mode of texture resource.
public void setDepth(long value)
The depth of the texture to create. The default value is 1.
depth When allocating any texture types other than 3D, depth must be 1.
public void setHeight(long value)
The height of the texture to create. The default value is 1.
height If allocating a 1D texture, height must be 1.
public void setMipmapLevelCount(long value)
The number of mipmap levels to allocate. The default value is 1.
When creating Buffer and Multisample textures, mipmapLevelCount must be 1.
public void setPixelFormat(long value)
The pixel format to use when allocating this texture. This is also the pixel format that will be used to when the caller writes or reads pixels from this texture. The default value is MTLPixelFormatRGBA8Unorm.
public void setResourceOptions(long value)
Options to control memory allocation parameters, etc.
Contains a packed set of the storageMode, cpuCacheMode and hazardTrackingMode properties.
public void setSampleCount(long value)
The number of samples in the texture to create. The default value is 1.
When creating Buffer textures sampleCount must be 1. Implementations may round sample counts up to the next supported value.
public void setStorageMode(long value)
To specify storage mode of texture resource.
public void setTextureType(long value)
The overall type of the texture to be created. The default value is MTLTextureType2D.
public void setUsage(long value)
Description of texture usage
public void setWidth(long value)
The width of the texture to create. The default value is 1.
public long storageMode()
To specify storage mode of texture resource.
public long textureType()
The overall type of the texture to be created. The default value is MTLTextureType2D.
public long usage()
Description of texture usage
public long width()
The width of the texture to create. The default value is 1.
public boolean allowGPUOptimizedContents()
Allow GPU-optimization for the contents of this texture. The default value is true.
Useful for opting-out of GPU-optimization when implicit optimization (e.g. RT writes) is regressing CPU-read-back performance. See the documentation for optimizeContentsForGPUAccess: and optimizeContentsForCPUAccess: APIs.
public long hazardTrackingMode()
Set hazard tracking mode for the texture. The default value is MTLHazardTrackingModeDefault.
For resources created from the device, MTLHazardTrackingModeDefault is treated as MTLHazardTrackingModeTracked. For resources created on a heap, MTLHazardTrackingModeDefault is treated as the hazardTrackingMode of the heap itself. In either case, it is possible to opt-out of hazard tracking by setting MTLHazardTrackingModeUntracked. It is not possible to opt-in to hazard tracking on a heap that itself is not hazard tracked. For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead.
public void setAllowGPUOptimizedContents(boolean value)
Allow GPU-optimization for the contents of this texture. The default value is true.
Useful for opting-out of GPU-optimization when implicit optimization (e.g. RT writes) is regressing CPU-read-back performance. See the documentation for optimizeContentsForGPUAccess: and optimizeContentsForCPUAccess: APIs.
public void setHazardTrackingMode(long value)
Set hazard tracking mode for the texture. The default value is MTLHazardTrackingModeDefault.
For resources created from the device, MTLHazardTrackingModeDefault is treated as MTLHazardTrackingModeTracked. For resources created on a heap, MTLHazardTrackingModeDefault is treated as the hazardTrackingMode of the heap itself. In either case, it is possible to opt-out of hazard tracking by setting MTLHazardTrackingModeUntracked. It is not possible to opt-in to hazard tracking on a heap that itself is not hazard tracked. For optimal performance, perform hazard tracking manually through MTLFence or MTLEvent instead.
public void setSwizzle(MTLTextureSwizzleChannels value)
Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.
public MTLTextureSwizzleChannels swizzle()
Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.
public static MTLTextureDescriptor textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat, long width, long resourceOptions, long usage)
Create a TextureDescriptor for a common texture buffer.
public long compressionType()
Controls how the texture contents will be compressed when written to by the GPU. Compression can be used to reduce the bandwidth usage and storage requirements of a texture.
The default compression type is lossless, meaning that no loss of precision will occur when the texture content is modified. Losslessly compressed textures may benefit from reduced bandwidth usage when regions of correlated color values are written, but do not benefit from reduced storage requirements. Enabling lossy compression for textures that can tolerate some precision loss will guarantee both reduced bandwidth usage and reduced storage requirements. The amount of precision loss depends on the color values stored; regions with correlated color values can be represented with limited to no precision loss, whereas regions with unrelated color values suffer more precision loss. Enabling lossy compression requires both storageMode == MTLStorageModePrivate, allowGPUOptimizedContents == YES, and cannot be combined with either MTLTextureUsagePixelFormatView, MTLTextureUsageShaderWrite, MTLTextureType1D(Array) or MTLTextureTypeTextureBuffer. Moreover, not all MTLPixelFormat are supported with lossy compression, verify that the MTLDevice's GPU family supports the lossy compression feature for the pixelFormat requested. Set allowGPUOptimizedContents to NO to opt out of both lossless and lossy compression; such textures do not benefit from either reduced bandwidth usage or reduced storage requirements, but have predictable CPU readback performance.
public void setCompressionType(long value)
Controls how the texture contents will be compressed when written to by the GPU. Compression can be used to reduce the bandwidth usage and storage requirements of a texture.
The default compression type is lossless, meaning that no loss of precision will occur when the texture content is modified. Losslessly compressed textures may benefit from reduced bandwidth usage when regions of correlated color values are written, but do not benefit from reduced storage requirements. Enabling lossy compression for textures that can tolerate some precision loss will guarantee both reduced bandwidth usage and reduced storage requirements. The amount of precision loss depends on the color values stored; regions with correlated color values can be represented with limited to no precision loss, whereas regions with unrelated color values suffer more precision loss. Enabling lossy compression requires both storageMode == MTLStorageModePrivate, allowGPUOptimizedContents == YES, and cannot be combined with either MTLTextureUsagePixelFormatView, MTLTextureUsageShaderWrite, MTLTextureType1D(Array) or MTLTextureTypeTextureBuffer. Moreover, not all MTLPixelFormat are supported with lossy compression, verify that the MTLDevice's GPU family supports the lossy compression feature for the pixelFormat requested. Set allowGPUOptimizedContents to NO to opt out of both lossless and lossy compression; such textures do not benefit from either reduced bandwidth usage or reduced storage requirements, but have predictable CPU readback performance.