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.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 Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static MTLTextureDescriptoralloc()static java.lang.ObjectallocWithZone(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(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()java.lang.ObjectcopyWithZone(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 NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longmipmapLevelCount()[@property] mipmapLevelCount The number of mipmap levels to allocate.static java.lang.Objectnew_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.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 usagestatic 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 MTLTextureDescriptortexture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat, long width, long height, boolean mipmapped)texture2DDescriptorWithPixelFormat:width:height:mipmapped: Create a TextureDescriptor for a common 2D texture.static MTLTextureDescriptortextureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat, long width, long resourceOptions, long usage)textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage: Create a TextureDescriptor for a common texture buffer.static 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 usagestatic longversion_static()longwidth()[@property] width The width of the texture to create.-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static MTLTextureDescriptor alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object 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
public static MTLTextureDescriptor texture2DDescriptorWithPixelFormatWidthHeightMipmapped(long pixelFormat, long width, long height, boolean mipmapped)
texture2DDescriptorWithPixelFormat:width:height:mipmapped: Create a TextureDescriptor for a common 2D texture.
-
textureCubeDescriptorWithPixelFormatSizeMipmapped
public static 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
public java.lang.Object copyWithZone(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.
-
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.
-
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.
-
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
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
setSwizzle
public void setSwizzle(MTLTextureSwizzleChannels value)
[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.
-
swizzle
public MTLTextureSwizzleChannels swizzle()
[@property] swizzle Channel swizzle to use when reading or sampling from the texture, the default value is MTLTextureSwizzleChannelsDefault.
-
textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage
public static MTLTextureDescriptor textureBufferDescriptorWithPixelFormatWidthResourceOptionsUsage(long pixelFormat, long width, long resourceOptions, long usage)
textureBufferDescriptorWithPixelFormat:width:resourceOptions:usage: Create a TextureDescriptor for a common texture buffer.
-
-