Package apple.metalperformanceshaders
Class MPSMatrixDescriptor
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.metalperformanceshaders.MPSMatrixDescriptor
-
- All Implemented Interfaces:
NSObject
public class MPSMatrixDescriptor extends NSObject
MPSMatrixDescriptor [@dependency] This depends on Metal.framework A MPSMatrixDescriptor describes the sizes, strides, and data type of a an array of 2-dimensional matrices. All storage is assumed to be in "matrix-major". See the description for MPSMatrix for further details.
-
-
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 protectedMPSMatrixDescriptor(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static MPSMatrixDescriptoralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)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()longcolumns()[@property] columns The number of columns in a matrix.intdataType()[@property] dataType The type of the data which makes up the values of the matrix.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()MPSMatrixDescriptorinit()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)longmatrices()[@property] matrices The number of matrices.longmatrixBytes()[@property] matrixBytes The stride, in bytes, between corresponding elements of consecutive matrices.static MPSMatrixDescriptormatrixDescriptorWithDimensionsColumnsRowBytesDataType(long rows, long columns, long rowBytes, int dataType)Create a MPSMatrixDescriptor with the specified dimensions and data type.static MPSMatrixDescriptormatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(long rows, long columns, long matrices, long rowBytes, long matrixBytes, int dataType)Create a MPSMatrixDescriptor with the specified dimensions and data type.static MPSMatrixDescriptormatrixDescriptorWithRowsColumnsRowBytesDataType(long rows, long columns, long rowBytes, int dataType)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)longrowBytes()[@property] rowBytes The stride, in bytes, between corresponding elements of consecutive rows.static longrowBytesForColumnsDataType(long columns, int dataType)static longrowBytesFromColumnsDataType(long columns, int dataType)Return the recommended row stride, in bytes, for a given number of columns.longrows()[@property] rows The number of rows in a matrix.voidsetColumns(long value)[@property] columns The number of columns in a matrix.voidsetDataType(int value)[@property] dataType The type of the data which makes up the values of the matrix.voidsetRowBytes(long value)[@property] rowBytes The stride, in bytes, between corresponding elements of consecutive rows.voidsetRows(long value)[@property] rows The number of rows in a matrix.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
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 MPSMatrixDescriptor 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)
-
matrixDescriptorWithDimensionsColumnsRowBytesDataType
public static MPSMatrixDescriptor matrixDescriptorWithDimensionsColumnsRowBytesDataType(long rows, long columns, long rowBytes, int dataType)
Create a MPSMatrixDescriptor with the specified dimensions and data type. For performance considerations the optimal row stride may not necessarily be equal to the number of columns in the matrix. The MPSMatrix class provides a method which may be used to determine this value, see the rowBytesForColumns API in the MPSMatrix class. The number of matrices described is initialized to 1.- Parameters:
rows- The number of rows of the matrix.columns- The number of columns of the matrix.rowBytes- The number of bytes between starting elements of consecutive rows. Must be a multiple of the element size.dataType- The type of the data to be stored in the matrix.
-
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)
-
rowBytesFromColumnsDataType
public static long rowBytesFromColumnsDataType(long columns, int dataType)Return the recommended row stride, in bytes, for a given number of columns. To achieve best performance the optimal stride between rows of a matrix is not necessarily equivalent to the number of columns. This method returns the row stride, in bytes, which gives best performance for a given number of columns. Using this row stride to construct your array is recommended, but not required (provided that the stride used is still large enough to allocate a full row of data).- Parameters:
columns- The number of columns in the matrix for which the recommended row stride, in bytes, is to be determined.dataType- The type of matrix data values.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
columns
public long columns()
[@property] columns The number of columns in a matrix.
-
dataType
public int dataType()
[@property] dataType The type of the data which makes up the values of the matrix.
-
init
public MPSMatrixDescriptor init()
-
rowBytes
public long rowBytes()
[@property] rowBytes The stride, in bytes, between corresponding elements of consecutive rows. Must be a multiple of the element size.
-
rows
public long rows()
[@property] rows The number of rows in a matrix.
-
setColumns
public void setColumns(long value)
[@property] columns The number of columns in a matrix.
-
setDataType
public void setDataType(int value)
[@property] dataType The type of the data which makes up the values of the matrix.
-
setRowBytes
public void setRowBytes(long value)
[@property] rowBytes The stride, in bytes, between corresponding elements of consecutive rows. Must be a multiple of the element size.
-
setRows
public void setRows(long value)
[@property] rows The number of rows in a matrix.
-
matrices
public long matrices()
[@property] matrices The number of matrices.
-
matrixBytes
public long matrixBytes()
[@property] matrixBytes The stride, in bytes, between corresponding elements of consecutive matrices. Must be a multiple of rowBytes.
-
matrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType
public static MPSMatrixDescriptor matrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(long rows, long columns, long matrices, long rowBytes, long matrixBytes, int dataType)
Create a MPSMatrixDescriptor with the specified dimensions and data type. For performance considerations the optimal row stride may not necessarily be equal to the number of columns in the matrix. The MPSMatrix class provides a method which may be used to determine this value, see the rowBytesForColumns API in the MPSMatrix class.- Parameters:
rows- The number of rows of a single matrix.columns- The number of columns of a single matrix.matrices- The number of matrices in the MPSMatrix object.rowBytes- The number of bytes between starting elements of consecutive rows. Must be a multiple of the element size.matrixBytes- The number of bytes between starting elements of consecutive matrices. Must be a multiple of rowBytes.dataType- The type of the data to be stored in the matrix.
-
matrixDescriptorWithRowsColumnsRowBytesDataType
public static MPSMatrixDescriptor matrixDescriptorWithRowsColumnsRowBytesDataType(long rows, long columns, long rowBytes, int dataType)
-
rowBytesForColumnsDataType
public static long rowBytesForColumnsDataType(long columns, int dataType)
-
-