Package apple.metal
Class MTLTextureDescriptor
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.metal.MTLTextureDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMTLTextureDescriptor(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static MTLTextureDescriptoralloc()static MTLTextureDescriptorallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowGPUOptimizedContents()[@property] allowGPUOptimizedContents Allow GPU-optimization for the contents of this texture.longarrayLength()[@property] arrayLength The number of array elements to allocate.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()longcompressionType()[@property] compressionType Controls how the texture contents will be compressed when written to by the GPU.@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)longcpuCacheMode()[@property] cpuCacheMode Options to specify CPU cache mode of texture resource.static java.lang.StringdebugDescription_static()longdepth()[@property] depth The depth of the texture to create.static java.lang.Stringdescription_static()static longhash_static()longhazardTrackingMode()[@property] hazardTrackingMode Set hazard tracking mode for the texture.longheight()[@property] height The height of the texture to create.MTLTextureDescriptorinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)longmipmapLevelCount()[@property] mipmapLevelCount The number of mipmap levels to allocate.static MTLTextureDescriptornew_objc()longpixelFormat()[@property] pixelFormat The pixel format to use when allocating this texture.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)longresourceOptions()[@property] resourceOptions Options to control memory allocation parameters, etc.longsampleCount()[@property] sampleCount The number of samples in the texture to create.voidsetAllowGPUOptimizedContents(boolean value)[@property] allowGPUOptimizedContents Allow GPU-optimization for the contents of this texture.voidsetArrayLength(long value)[@property] arrayLength The number of array elements to allocate.voidsetCompressionType(long value)[@property] compressionType Controls how the texture contents will be compressed when written to by the GPU.voidsetCpuCacheMode(long value)[@property] cpuCacheMode Options to specify CPU cache mode of texture resource.voidsetDepth(long value)[@property] depth The depth of the texture to create.voidsetHazardTrackingMode(long value)[@property] hazardTrackingMode Set hazard tracking mode for the texture.voidsetHeight(long value)[@property] height The height of the texture to create.voidsetMipmapLevelCount(long value)[@property] mipmapLevelCount The number of mipmap levels to allocate.voidsetPixelFormat(long value)[@property] pixelFormat The pixel format to use when allocating this texture.voidsetResourceOptions(long value)[@property] resourceOptions Options to control memory allocation parameters, etc.voidsetSampleCount(long value)[@property] sampleCount The number of samples in the texture to create.voidsetStorageMode(long value)[@property] storageMode To specify storage mode of texture resource.voidsetSwizzle(MTLTextureSwizzleChannels value)[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.voidsetTextureType(long value)[@property] type The overall type of the texture to be created.voidsetUsage(long value)[@property] usage Description of texture usage API-Since: 9.0static voidsetVersion_static(long aVersion)voidsetWidth(long value)[@property] width The width of the texture to create.longstorageMode()[@property] storageMode To specify storage mode of texture resource.static org.moe.natj.objc.Classsuperclass_static()MTLTextureSwizzleChannelsswizzle()[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.static @NotNull MTLTextureDescriptortexture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat, long width, long height, boolean mipmapped)texture2DDescriptorWithPixelFormat:width:height:mipmapped: Create a TextureDescriptor for a common 2D texture.static @NotNull MTLTextureDescriptortextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat, long width, long resourceOptions, long usage)textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage: Create a TextureDescriptor for a common texture buffer.static @NotNull MTLTextureDescriptortextureCubeDescriptorWithPixelFormatSizeMipmapped(long pixelFormat, long size, boolean mipmapped)textureCubeDescriptorWithPixelFormat:size:mipmapped: Create a TextureDescriptor for a common Cube texture.longtextureType()[@property] type The overall type of the texture to be created.longusage()[@property] usage Description of texture usage API-Since: 9.0static booleanuseStoredAccessor()Deprecated.static longversion_static()longwidth()[@property] width The width of the texture to create.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static MTLTextureDescriptor alloc()
-
allocWithZone
public static MTLTextureDescriptor allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static MTLTextureDescriptor new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
texture2DDescriptorWithPixelFormatWidthHeightMipmapped
@NotNull public static @NotNull MTLTextureDescriptor texture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat, long width, long height, boolean mipmapped)
texture2DDescriptorWithPixelFormat:width:height:mipmapped: Create a TextureDescriptor for a common 2D texture.
-
textureCubeDescriptorWithPixelFormatSizeMipmapped
@NotNull public static @NotNull MTLTextureDescriptor textureCubeDescriptorWithPixelFormatSizeMipmapped(long pixelFormat, long size, boolean mipmapped)
textureCubeDescriptorWithPixelFormat:size:mipmapped: Create a TextureDescriptor for a common Cube texture.
-
version_static
public static long version_static()
-
arrayLength
public long arrayLength()
[@property] 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.
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
cpuCacheMode
public long cpuCacheMode()
[@property] cpuCacheMode Options to specify CPU cache mode of texture resource. API-Since: 9.0
-
depth
public long depth()
[@property] 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.
-
height
public long height()
[@property] height The height of the texture to create. The default value is 1. height If allocating a 1D texture, height must be 1.
-
init
public MTLTextureDescriptor init()
-
mipmapLevelCount
public long mipmapLevelCount()
[@property] mipmapLevelCount The number of mipmap levels to allocate. The default value is 1. When creating Buffer and Multisample textures, mipmapLevelCount must be 1.
-
pixelFormat
public long pixelFormat()
[@property] 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.
-
resourceOptions
public long resourceOptions()
[@property] resourceOptions Options to control memory allocation parameters, etc. Contains a packed set of the storageMode, cpuCacheMode and hazardTrackingMode properties.
-
sampleCount
public long sampleCount()
[@property] 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.
-
setArrayLength
public void setArrayLength(long value)
[@property] 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.
-
setCpuCacheMode
public void setCpuCacheMode(long value)
[@property] cpuCacheMode Options to specify CPU cache mode of texture resource. API-Since: 9.0
-
setDepth
public void setDepth(long value)
[@property] 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.
-
setHeight
public void setHeight(long value)
[@property] height The height of the texture to create. The default value is 1. height If allocating a 1D texture, height must be 1.
-
setMipmapLevelCount
public void setMipmapLevelCount(long value)
[@property] mipmapLevelCount The number of mipmap levels to allocate. The default value is 1. When creating Buffer and Multisample textures, mipmapLevelCount must be 1.
-
setPixelFormat
public void setPixelFormat(long value)
[@property] 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.
-
setResourceOptions
public void setResourceOptions(long value)
[@property] resourceOptions Options to control memory allocation parameters, etc. Contains a packed set of the storageMode, cpuCacheMode and hazardTrackingMode properties.
-
setSampleCount
public void setSampleCount(long value)
[@property] 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.
-
setStorageMode
public void setStorageMode(long value)
[@property] storageMode To specify storage mode of texture resource. API-Since: 9.0
-
setTextureType
public void setTextureType(long value)
[@property] type The overall type of the texture to be created. The default value is MTLTextureType2D.
-
setUsage
public void setUsage(long value)
[@property] usage Description of texture usage API-Since: 9.0
-
setWidth
public void setWidth(long value)
[@property] width The width of the texture to create. The default value is 1.
-
storageMode
public long storageMode()
[@property] storageMode To specify storage mode of texture resource. API-Since: 9.0
-
textureType
public long textureType()
[@property] type The overall type of the texture to be created. The default value is MTLTextureType2D.
-
usage
public long usage()
[@property] usage Description of texture usage API-Since: 9.0
-
width
public long width()
[@property] width The width of the texture to create. The default value is 1.
-
allowGPUOptimizedContents
public boolean allowGPUOptimizedContents()
[@property] 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. API-Since: 12.0
-
hazardTrackingMode
public long hazardTrackingMode()
[@property] 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. API-Since: 13.0
-
setAllowGPUOptimizedContents
public void setAllowGPUOptimizedContents(boolean value)
[@property] 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. API-Since: 12.0
-
setHazardTrackingMode
public void setHazardTrackingMode(long value)
[@property] 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. API-Since: 13.0
-
setSwizzle
public void setSwizzle(MTLTextureSwizzleChannels value)
[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault. API-Since: 13.0
-
swizzle
public MTLTextureSwizzleChannels swizzle()
[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault. API-Since: 13.0
-
textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage
@NotNull public static @NotNull MTLTextureDescriptor textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat, long width, long resourceOptions, long usage)
textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage: Create a TextureDescriptor for a common texture buffer. API-Since: 12.0
-
compressionType
public long compressionType()
[@property] 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, MTLTextureUsageShaderAtomic, 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. API-Since: 15.0
-
setCompressionType
public void setCompressionType(long value)
[@property] 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, MTLTextureUsageShaderAtomic, 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. API-Since: 15.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-