mpsndarray

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package mpsndarray provides a fluent Go API over the macOS MPSNDArray framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayAffineInt4Dequantize added in v0.17.0

type ArrayAffineInt4Dequantize struct {
	ArrayMultiaryKernel
}

ArrayAffineInt4Dequantize is an idiomatic wrapper over the Objective-C class MPSNDArrayAffineInt4Dequantize.

It embeds ArrayMultiaryKernel, promoting that type's methods.

func ArrayAffineInt4DequantizeFromID added in v0.17.0

func ArrayAffineInt4DequantizeFromID(id objc.ID) *ArrayAffineInt4Dequantize

ArrayAffineInt4DequantizeFromID adopts an existing Objective-C object as a ArrayAffineInt4Dequantize (nil for 0), retaining it and registering a release finalizer.

func NewArrayAffineInt4Dequantize added in v0.17.0

func NewArrayAffineInt4Dequantize() *ArrayAffineInt4Dequantize

NewArrayAffineInt4Dequantize creates a new ArrayAffineInt4Dequantize.

type ArrayAffineQuantizationDescriptor added in v0.17.0

type ArrayAffineQuantizationDescriptor struct {
	ArrayQuantizationDescriptor
}

ArrayAffineQuantizationDescriptor is an idiomatic wrapper over the Objective-C class MPSNDArrayAffineQuantizationDescriptor.

It embeds ArrayQuantizationDescriptor, promoting that type's methods.

func ArrayAffineQuantizationDescriptorFromID added in v0.17.0

func ArrayAffineQuantizationDescriptorFromID(id objc.ID) *ArrayAffineQuantizationDescriptor

ArrayAffineQuantizationDescriptorFromID adopts an existing Objective-C object as a ArrayAffineQuantizationDescriptor (nil for 0), retaining it and registering a release finalizer.

func NewArrayAffineQuantizationDescriptor added in v0.17.0

func NewArrayAffineQuantizationDescriptor() *ArrayAffineQuantizationDescriptor

NewArrayAffineQuantizationDescriptor creates a new ArrayAffineQuantizationDescriptor.

func (*ArrayAffineQuantizationDescriptor) HasMinValue added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) HasMinValue() bool

HasMinValue reports whether if yes then offset is used. See MPSNDArrayQuantizationScheme.

func (*ArrayAffineQuantizationDescriptor) HasZeroPoint added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) HasZeroPoint() bool

HasZeroPoint reports whether if yes then asymmetric quantization is used. See MPSNDArrayQuantizationScheme.

func (*ArrayAffineQuantizationDescriptor) ImplicitZeroPoint added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) ImplicitZeroPoint() bool

ImplicitZeroPoint reports whether if true and quantized values are signed, these are assumed to be stored with an implicit offset or zero-point of 2^(quantizationBitWidth-1) added to bring signed values into unsigned range. e.g. Int4 values are in range [-8,7]. If we add 8 to it values are in range [0,15] and can be encoded/stored as UInt4. Default is false. Its only currently applicable to Int4. Implementation will generate error for any other data type;

func (*ArrayAffineQuantizationDescriptor) WithHasMinValue added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) WithHasMinValue(hasMinValue bool) *ArrayAffineQuantizationDescriptor

WithHasMinValue sets if yes then offset is used. See MPSNDArrayQuantizationScheme.

func (*ArrayAffineQuantizationDescriptor) WithHasZeroPoint added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) WithHasZeroPoint(hasZeroPoint bool) *ArrayAffineQuantizationDescriptor

WithHasZeroPoint sets if yes then asymmetric quantization is used. See MPSNDArrayQuantizationScheme.

func (*ArrayAffineQuantizationDescriptor) WithImplicitZeroPoint added in v0.17.0

func (aaqd *ArrayAffineQuantizationDescriptor) WithImplicitZeroPoint(implicitZeroPoint bool) *ArrayAffineQuantizationDescriptor

WithImplicitZeroPoint sets if true and quantized values are signed, these are assumed to be stored with an implicit offset or zero-point of 2^(quantizationBitWidth-1) added to bring signed values into unsigned range. e.g. Int4 values are in range [-8,7]. If we add 8 to it values are in range [0,15] and can be encoded/stored as UInt4. Default is false. Its only currently applicable to Int4. Implementation will generate error for any other data type;

type ArrayBinaryKernel added in v0.17.0

type ArrayBinaryKernel struct {
	ArrayMultiaryKernel
}

ArrayBinaryKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayBinaryKernel.

ArrayBinaryKernel is an abstract base — you do not construct it directly. Construct one of ArrayGather and pass it where a ArrayBinaryKernel is accepted.

func ArrayBinaryKernelFromID added in v0.17.0

func ArrayBinaryKernelFromID(id objc.ID) *ArrayBinaryKernel

ArrayBinaryKernelFromID adopts an existing Objective-C object as a ArrayBinaryKernel (nil for 0), retaining it and registering a release finalizer.

func (*ArrayBinaryKernel) PrimaryDilationRates added in v0.18.1

func (abk *ArrayBinaryKernel) PrimaryDilationRates() MPSNDArraySizes

PrimaryDilationRates returns the stride in each dimension from one PSF tap to an adjacent PSF tap. Default: 1

func (*ArrayBinaryKernel) PrimaryKernelSizes added in v0.18.1

func (abk *ArrayBinaryKernel) PrimaryKernelSizes() MPSNDArraySizes

PrimaryKernelSizes returns the diameters of the point spread function in each dimension for a source NDArray Default: 1

func (*ArrayBinaryKernel) PrimaryOffsets added in v0.18.1

func (abk *ArrayBinaryKernel) PrimaryOffsets() MPSNDArrayOffsets

PrimaryOffsets returns the coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension. Default: 0,0,0...

func (*ArrayBinaryKernel) PrimaryStrides added in v0.18.1

func (abk *ArrayBinaryKernel) PrimaryStrides() MPSNDArrayOffsets

PrimaryStrides returns if the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result. Default: 1

func (*ArrayBinaryKernel) SecondaryDilationRates added in v0.18.1

func (abk *ArrayBinaryKernel) SecondaryDilationRates() MPSNDArraySizes

SecondaryDilationRates returns the stride in each dimension from one PSF tap to an adjacent PSF tap. Default: 1

func (*ArrayBinaryKernel) SecondaryKernelSizes added in v0.18.1

func (abk *ArrayBinaryKernel) SecondaryKernelSizes() MPSNDArraySizes

SecondaryKernelSizes returns the diameters of the point spread function in each dimension for a source NDArray Default: 1

func (*ArrayBinaryKernel) SecondaryOffsets added in v0.18.1

func (abk *ArrayBinaryKernel) SecondaryOffsets() MPSNDArrayOffsets

SecondaryOffsets returns the coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension. Default: 0,0,0...

func (*ArrayBinaryKernel) SecondaryStrides added in v0.18.1

func (abk *ArrayBinaryKernel) SecondaryStrides() MPSNDArrayOffsets

SecondaryStrides returns if the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result. Default: 1

type ArrayBinaryKernelProvider added in v0.17.0

type ArrayBinaryKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayBinaryKernelProvider is accepted wherever a MPSNDArrayBinaryKernel (or one of its subclasses) is expected.

type ArrayBinaryPrimaryGradientKernel added in v0.17.0

type ArrayBinaryPrimaryGradientKernel struct {
	ArrayMultiaryGradientKernel
}

ArrayBinaryPrimaryGradientKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayBinaryPrimaryGradientKernel.

ArrayBinaryPrimaryGradientKernel is an abstract base — you do not construct it directly. Construct one of ArrayGatherGradient and pass it where a ArrayBinaryPrimaryGradientKernel is accepted.

func ArrayBinaryPrimaryGradientKernelFromID added in v0.17.0

func ArrayBinaryPrimaryGradientKernelFromID(id objc.ID) *ArrayBinaryPrimaryGradientKernel

ArrayBinaryPrimaryGradientKernelFromID adopts an existing Objective-C object as a ArrayBinaryPrimaryGradientKernel (nil for 0), retaining it and registering a release finalizer.

type ArrayBinaryPrimaryGradientKernelProvider added in v0.17.0

type ArrayBinaryPrimaryGradientKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayBinaryPrimaryGradientKernelProvider is accepted wherever a MPSNDArrayBinaryPrimaryGradientKernel (or one of its subclasses) is expected.

type ArrayBinarySecondaryGradientKernel added in v0.17.0

type ArrayBinarySecondaryGradientKernel struct {
	ArrayMultiaryGradientKernel
}

ArrayBinarySecondaryGradientKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayBinarySecondaryGradientKernel.

It embeds ArrayMultiaryGradientKernel, promoting that type's methods.

func ArrayBinarySecondaryGradientKernelFromID added in v0.17.0

func ArrayBinarySecondaryGradientKernelFromID(id objc.ID) *ArrayBinarySecondaryGradientKernel

ArrayBinarySecondaryGradientKernelFromID adopts an existing Objective-C object as a ArrayBinarySecondaryGradientKernel (nil for 0), retaining it and registering a release finalizer.

func NewArrayBinarySecondaryGradientKernel added in v0.17.0

func NewArrayBinarySecondaryGradientKernel() *ArrayBinarySecondaryGradientKernel

NewArrayBinarySecondaryGradientKernel creates a new ArrayBinarySecondaryGradientKernel.

type ArrayGather added in v0.17.0

type ArrayGather struct {
	ArrayBinaryKernel
}

ArrayGather is an idiomatic wrapper over the Objective-C class MPSNDArrayGather.

It embeds ArrayBinaryKernel, promoting that type's methods.

func ArrayGatherFromID added in v0.17.0

func ArrayGatherFromID(id objc.ID) *ArrayGather

ArrayGatherFromID adopts an existing Objective-C object as a ArrayGather (nil for 0), retaining it and registering a release finalizer.

func NewArrayGather added in v0.17.0

func NewArrayGather() *ArrayGather

NewArrayGather creates a new ArrayGather.

func (*ArrayGather) Axis added in v0.17.0

func (ag *ArrayGather) Axis() int

Axis returns the axis along which to apply the gather operation. Defaults to zero.

func (*ArrayGather) WithAxis added in v0.17.0

func (ag *ArrayGather) WithAxis(axis int) *ArrayGather

WithAxis sets the axis along which to apply the gather operation. Defaults to zero.

type ArrayGatherGradient added in v0.17.0

type ArrayGatherGradient struct {
	ArrayBinaryPrimaryGradientKernel
}

ArrayGatherGradient is an idiomatic wrapper over the Objective-C class MPSNDArrayGatherGradient.

It embeds ArrayBinaryPrimaryGradientKernel, promoting that type's methods.

func ArrayGatherGradientFromID added in v0.17.0

func ArrayGatherGradientFromID(id objc.ID) *ArrayGatherGradient

ArrayGatherGradientFromID adopts an existing Objective-C object as a ArrayGatherGradient (nil for 0), retaining it and registering a release finalizer.

func NewArrayGatherGradient added in v0.17.0

func NewArrayGatherGradient() *ArrayGatherGradient

NewArrayGatherGradient creates a new ArrayGatherGradient.

type ArrayGatherGradientState added in v0.17.0

type ArrayGatherGradientState struct {
	ArrayGradientState
}

ArrayGatherGradientState is an idiomatic wrapper over the Objective-C class MPSNDArrayGatherGradientState.

It embeds ArrayGradientState, promoting that type's methods.

func ArrayGatherGradientStateFromID added in v0.17.0

func ArrayGatherGradientStateFromID(id objc.ID) *ArrayGatherGradientState

ArrayGatherGradientStateFromID adopts an existing Objective-C object as a ArrayGatherGradientState (nil for 0), retaining it and registering a release finalizer.

func NewArrayGatherGradientState added in v0.17.0

func NewArrayGatherGradientState() *ArrayGatherGradientState

NewArrayGatherGradientState creates a new ArrayGatherGradientState.

type ArrayGradientState added in v0.17.0

type ArrayGradientState struct {
	objref.Handle
}

ArrayGradientState is an idiomatic wrapper over the Objective-C class MPSNDArrayGradientState.

ArrayGradientState is an abstract base — you do not construct it directly. Construct one of ArrayGatherGradientState and pass it where a ArrayGradientState is accepted.

func ArrayGradientStateFromID added in v0.17.0

func ArrayGradientStateFromID(id objc.ID) *ArrayGradientState

ArrayGradientStateFromID adopts an existing Objective-C object as a ArrayGradientState (nil for 0), retaining it and registering a release finalizer.

func (*ArrayGradientState) Description added in v0.17.0

func (ags *ArrayGradientState) Description() string

Description returns the object's -description text.

func (*ArrayGradientState) IsEqual added in v0.17.0

func (ags *ArrayGradientState) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ArrayGradientState) IsKind added in v0.17.0

func (ags *ArrayGradientState) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ArrayGradientState) String added in v0.17.0

func (ags *ArrayGradientState) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ArrayGradientStateProvider added in v0.17.0

type ArrayGradientStateProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayGradientStateProvider is accepted wherever a MPSNDArrayGradientState (or one of its subclasses) is expected.

type ArrayIdentity added in v0.17.0

type ArrayIdentity struct {
	ArrayUnaryKernel
}

ArrayIdentity is an idiomatic wrapper over the Objective-C class MPSNDArrayIdentity.

It embeds ArrayUnaryKernel, promoting that type's methods.

func ArrayIdentityFromID added in v0.17.0

func ArrayIdentityFromID(id objc.ID) *ArrayIdentity

ArrayIdentityFromID adopts an existing Objective-C object as a ArrayIdentity (nil for 0), retaining it and registering a release finalizer.

func NewArrayIdentity added in v0.17.0

func NewArrayIdentity() *ArrayIdentity

NewArrayIdentity creates a new ArrayIdentity.

type ArrayLUTDequantize added in v0.17.0

type ArrayLUTDequantize struct {
	ArrayMultiaryKernel
}

ArrayLUTDequantize is an idiomatic wrapper over the Objective-C class MPSNDArrayLUTDequantize.

It embeds ArrayMultiaryKernel, promoting that type's methods.

func ArrayLUTDequantizeFromID added in v0.17.0

func ArrayLUTDequantizeFromID(id objc.ID) *ArrayLUTDequantize

ArrayLUTDequantizeFromID adopts an existing Objective-C object as a ArrayLUTDequantize (nil for 0), retaining it and registering a release finalizer.

func NewArrayLUTDequantize added in v0.17.0

func NewArrayLUTDequantize() *ArrayLUTDequantize

NewArrayLUTDequantize creates a new ArrayLUTDequantize.

type ArrayLUTQuantizationDescriptor added in v0.17.0

type ArrayLUTQuantizationDescriptor struct {
	ArrayQuantizationDescriptor
}

ArrayLUTQuantizationDescriptor is an idiomatic wrapper over the Objective-C class MPSNDArrayLUTQuantizationDescriptor.

It embeds ArrayQuantizationDescriptor, promoting that type's methods.

func ArrayLUTQuantizationDescriptorFromID added in v0.17.0

func ArrayLUTQuantizationDescriptorFromID(id objc.ID) *ArrayLUTQuantizationDescriptor

ArrayLUTQuantizationDescriptorFromID adopts an existing Objective-C object as a ArrayLUTQuantizationDescriptor (nil for 0), retaining it and registering a release finalizer.

func NewArrayLUTQuantizationDescriptor added in v0.17.0

func NewArrayLUTQuantizationDescriptor() *ArrayLUTQuantizationDescriptor

NewArrayLUTQuantizationDescriptor creates a new ArrayLUTQuantizationDescriptor.

type ArrayMatrixMultiplication added in v0.17.0

type ArrayMatrixMultiplication struct {
	ArrayMultiaryKernel
}

ArrayMatrixMultiplication is an idiomatic wrapper over the Objective-C class MPSNDArrayMatrixMultiplication.

ArrayMatrixMultiplication is an abstract base — you do not construct it directly. Construct one of ArrayQuantizedMatrixMultiplication and pass it where a ArrayMatrixMultiplication is accepted.

func ArrayMatrixMultiplicationFromID added in v0.17.0

func ArrayMatrixMultiplicationFromID(id objc.ID) *ArrayMatrixMultiplication

ArrayMatrixMultiplicationFromID adopts an existing Objective-C object as a ArrayMatrixMultiplication (nil for 0), retaining it and registering a release finalizer.

func (*ArrayMatrixMultiplication) Alpha added in v0.17.0

func (amm *ArrayMatrixMultiplication) Alpha() float64

Alpha returns the scale factor to apply to the product. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

func (*ArrayMatrixMultiplication) Beta added in v0.17.0

func (amm *ArrayMatrixMultiplication) Beta() float64

Beta returns the scale factor to apply to the addend if available. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

func (*ArrayMatrixMultiplication) WithAlpha added in v0.17.0

WithAlpha sets the scale factor to apply to the product. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

func (*ArrayMatrixMultiplication) WithBeta added in v0.17.0

WithBeta sets the scale factor to apply to the addend if available. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

type ArrayMatrixMultiplicationProvider added in v0.17.0

type ArrayMatrixMultiplicationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayMatrixMultiplicationProvider is accepted wherever a MPSNDArrayMatrixMultiplication (or one of its subclasses) is expected.

type ArrayMultiaryBase added in v0.17.0

type ArrayMultiaryBase struct {
	objref.Handle
}

ArrayMultiaryBase is an idiomatic wrapper over the Objective-C class MPSNDArrayMultiaryBase.

ArrayMultiaryBase is an abstract base — you do not construct it directly. Construct one of ArrayMultiaryGradientKernel, ArrayMultiaryKernel and pass it where a ArrayMultiaryBase is accepted.

func ArrayMultiaryBaseFromID added in v0.17.0

func ArrayMultiaryBaseFromID(id objc.ID) *ArrayMultiaryBase

ArrayMultiaryBaseFromID adopts an existing Objective-C object as a ArrayMultiaryBase (nil for 0), retaining it and registering a release finalizer.

func (*ArrayMultiaryBase) Description added in v0.17.0

func (amb *ArrayMultiaryBase) Description() string

Description returns the object's -description text.

func (*ArrayMultiaryBase) DestinationArrayDescriptorForSourceArraysSourceState added in v0.17.0

func (amb *ArrayMultiaryBase) DestinationArrayDescriptorForSourceArraysSourceState(sources []obj.Object, state obj.Object) obj.Object

DestinationArrayDescriptorForSourceArraysSourceState return a descriptor suitable for allocating a NSArray to receive the result The object properties (kernelSize, offsets, edgeMode, etc.) should be properly configured as if the -encode call was about to be made, before this method is called. Those properties may affect the results.

func (*ArrayMultiaryBase) DilationRatesForSourceIndex added in v0.18.1

func (amb *ArrayMultiaryBase) DilationRatesForSourceIndex(sourceIndex int) MPSNDArraySizes

DilationRatesForSourceIndex get the kernel dilation rate for each dimension

func (*ArrayMultiaryBase) EncodeWithCoder added in v0.17.0

func (amb *ArrayMultiaryBase) EncodeWithCoder(coder obj.Object)

EncodeWithCoder initialize a MPSNDArrayMultiaryKernel from a NSCoder

func (*ArrayMultiaryBase) IsEqual added in v0.17.0

func (amb *ArrayMultiaryBase) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ArrayMultiaryBase) IsKind added in v0.17.0

func (amb *ArrayMultiaryBase) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ArrayMultiaryBase) KernelSizesForSourceIndex added in v0.18.1

func (amb *ArrayMultiaryBase) KernelSizesForSourceIndex(sourceIndex int) MPSNDArraySizes

KernelSizesForSourceIndex get the diameters of the point spread function (PSF) in each dimension

func (*ArrayMultiaryBase) OffsetsAtSourceIndex added in v0.18.1

func (amb *ArrayMultiaryBase) OffsetsAtSourceIndex(sourceIndex int) MPSNDArrayOffsets

OffsetsAtSourceIndex read offsets to use when addressing a source NDArray The coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension.

func (*ArrayMultiaryBase) ResultStateForSourceArraysSourceStatesDestinationArray added in v0.17.0

func (amb *ArrayMultiaryBase) ResultStateForSourceArraysSourceStatesDestinationArray(sourceArrays []obj.Object, sourceStates []obj.Object, destinationArray obj.Object) obj.Object

ResultStateForSourceArraysSourceStatesDestinationArray wraps the corresponding Objective-C method.

func (*ArrayMultiaryBase) StridesForSourceIndex added in v0.18.1

func (amb *ArrayMultiaryBase) StridesForSourceIndex(sourceIndex int) MPSNDArrayOffsets

StridesForSourceIndex return the downsampling ratio for the kernel in each dimension If the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result.

func (*ArrayMultiaryBase) String added in v0.17.0

func (amb *ArrayMultiaryBase) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ArrayMultiaryBaseProvider added in v0.17.0

type ArrayMultiaryBaseProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayMultiaryBaseProvider is accepted wherever a MPSNDArrayMultiaryBase (or one of its subclasses) is expected.

type ArrayMultiaryGradientKernel added in v0.17.0

type ArrayMultiaryGradientKernel struct {
	ArrayMultiaryBase
}

ArrayMultiaryGradientKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayMultiaryGradientKernel.

ArrayMultiaryGradientKernel is an abstract base — you do not construct it directly. Construct one of ArrayBinaryPrimaryGradientKernel, ArrayBinarySecondaryGradientKernel, ArrayUnaryGradientKernel and pass it where a ArrayMultiaryGradientKernel is accepted.

func ArrayMultiaryGradientKernelFromID added in v0.17.0

func ArrayMultiaryGradientKernelFromID(id objc.ID) *ArrayMultiaryGradientKernel

ArrayMultiaryGradientKernelFromID adopts an existing Objective-C object as a ArrayMultiaryGradientKernel (nil for 0), retaining it and registering a release finalizer.

type ArrayMultiaryGradientKernelProvider added in v0.17.0

type ArrayMultiaryGradientKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayMultiaryGradientKernelProvider is accepted wherever a MPSNDArrayMultiaryGradientKernel (or one of its subclasses) is expected.

type ArrayMultiaryKernel added in v0.17.0

type ArrayMultiaryKernel struct {
	ArrayMultiaryBase
}

ArrayMultiaryKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayMultiaryKernel.

ArrayMultiaryKernel is an abstract base — you do not construct it directly. Construct one of ArrayAffineInt4Dequantize, ArrayBinaryKernel, ArrayLUTDequantize, ArrayMatrixMultiplication, ArrayUnaryKernel, ArrayVectorLUTDequantize and pass it where a ArrayMultiaryKernel is accepted.

func ArrayMultiaryKernelFromID added in v0.17.0

func ArrayMultiaryKernelFromID(id objc.ID) *ArrayMultiaryKernel

ArrayMultiaryKernelFromID adopts an existing Objective-C object as a ArrayMultiaryKernel (nil for 0), retaining it and registering a release finalizer.

type ArrayMultiaryKernelProvider added in v0.17.0

type ArrayMultiaryKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayMultiaryKernelProvider is accepted wherever a MPSNDArrayMultiaryKernel (or one of its subclasses) is expected.

type ArrayQuantizationDescriptor added in v0.17.0

type ArrayQuantizationDescriptor struct {
	objref.Handle
}

ArrayQuantizationDescriptor is an idiomatic wrapper over the Objective-C class MPSNDArrayQuantizationDescriptor.

ArrayQuantizationDescriptor is an abstract base — you do not construct it directly. Construct one of ArrayAffineQuantizationDescriptor, ArrayLUTQuantizationDescriptor and pass it where a ArrayQuantizationDescriptor is accepted.

func ArrayQuantizationDescriptorFromID added in v0.17.0

func ArrayQuantizationDescriptorFromID(id objc.ID) *ArrayQuantizationDescriptor

ArrayQuantizationDescriptorFromID adopts an existing Objective-C object as a ArrayQuantizationDescriptor (nil for 0), retaining it and registering a release finalizer.

func (*ArrayQuantizationDescriptor) Description added in v0.17.0

func (aqd *ArrayQuantizationDescriptor) Description() string

Description returns the object's -description text.

func (*ArrayQuantizationDescriptor) IsEqual added in v0.17.0

func (aqd *ArrayQuantizationDescriptor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ArrayQuantizationDescriptor) IsKind added in v0.17.0

func (aqd *ArrayQuantizationDescriptor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ArrayQuantizationDescriptor) QuantizationScheme added in v0.17.0

func (aqd *ArrayQuantizationDescriptor) QuantizationScheme() ArrayQuantizationScheme

QuantizationScheme returns the quantization scheme for this descriptor. The default is MPSNDArrayQuantizationTypeNone.

func (*ArrayQuantizationDescriptor) String added in v0.17.0

func (aqd *ArrayQuantizationDescriptor) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ArrayQuantizationDescriptorProvider added in v0.17.0

type ArrayQuantizationDescriptorProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayQuantizationDescriptorProvider is accepted wherever a MPSNDArrayQuantizationDescriptor (or one of its subclasses) is expected.

type ArrayQuantizationScheme added in v0.17.0

type ArrayQuantizationScheme uint64

Bitmask — values may be combined with |.

const (
	ArrayQuantizationTypeNone   ArrayQuantizationScheme = 0
	ArrayQuantizationTypeAffine ArrayQuantizationScheme = 1
	ArrayQuantizationTypeLUT    ArrayQuantizationScheme = 2
)

func (ArrayQuantizationScheme) String added in v0.17.0

func (e ArrayQuantizationScheme) String() string

String returns the ArrayQuantizationScheme constant's name, or its numeric form when the value is not a known constant.

type ArrayQuantizedMatrixMultiplication added in v0.17.0

type ArrayQuantizedMatrixMultiplication struct {
	ArrayMatrixMultiplication
}

ArrayQuantizedMatrixMultiplication is an idiomatic wrapper over the Objective-C class MPSNDArrayQuantizedMatrixMultiplication.

It embeds ArrayMatrixMultiplication, promoting that type's methods.

func ArrayQuantizedMatrixMultiplicationFromID added in v0.17.0

func ArrayQuantizedMatrixMultiplicationFromID(id objc.ID) *ArrayQuantizedMatrixMultiplication

ArrayQuantizedMatrixMultiplicationFromID adopts an existing Objective-C object as a ArrayQuantizedMatrixMultiplication (nil for 0), retaining it and registering a release finalizer.

func NewArrayQuantizedMatrixMultiplication added in v0.17.0

func NewArrayQuantizedMatrixMultiplication() *ArrayQuantizedMatrixMultiplication

NewArrayQuantizedMatrixMultiplication creates a new ArrayQuantizedMatrixMultiplication.

func (*ArrayQuantizedMatrixMultiplication) WithAlpha added in v0.17.0

WithAlpha sets the scale factor to apply to the product. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

func (*ArrayQuantizedMatrixMultiplication) WithBeta added in v0.17.0

WithBeta sets the scale factor to apply to the addend if available. Specified in double precision. Will be converted to the appropriate precision in the implementation subject to rounding and/or clamping as necessary. Defaults to 1.0 at initialization time.

type ArrayStridedSlice added in v0.17.0

type ArrayStridedSlice struct {
	ArrayUnaryKernel
}

ArrayStridedSlice is an idiomatic wrapper over the Objective-C class MPSNDArrayStridedSlice.

It embeds ArrayUnaryKernel, promoting that type's methods.

func ArrayStridedSliceFromID added in v0.17.0

func ArrayStridedSliceFromID(id objc.ID) *ArrayStridedSlice

ArrayStridedSliceFromID adopts an existing Objective-C object as a ArrayStridedSlice (nil for 0), retaining it and registering a release finalizer.

func NewArrayStridedSlice added in v0.17.0

func NewArrayStridedSlice() *ArrayStridedSlice

NewArrayStridedSlice creates a new ArrayStridedSlice.

func (*ArrayStridedSlice) WithStrides added in v0.18.1

func (ass *ArrayStridedSlice) WithStrides(strides MPSNDArrayOffsets) *ArrayStridedSlice

WithStrides sets the strides to use when slicing the input array.

type ArrayStridedSliceGradient added in v0.17.0

type ArrayStridedSliceGradient struct {
	ArrayUnaryGradientKernel
}

ArrayStridedSliceGradient is an idiomatic wrapper over the Objective-C class MPSNDArrayStridedSliceGradient.

It embeds ArrayUnaryGradientKernel, promoting that type's methods.

func ArrayStridedSliceGradientFromID added in v0.17.0

func ArrayStridedSliceGradientFromID(id objc.ID) *ArrayStridedSliceGradient

ArrayStridedSliceGradientFromID adopts an existing Objective-C object as a ArrayStridedSliceGradient (nil for 0), retaining it and registering a release finalizer.

func NewArrayStridedSliceGradient added in v0.17.0

func NewArrayStridedSliceGradient() *ArrayStridedSliceGradient

NewArrayStridedSliceGradient creates a new ArrayStridedSliceGradient.

type ArrayUnaryGradientKernel added in v0.17.0

type ArrayUnaryGradientKernel struct {
	ArrayMultiaryGradientKernel
}

ArrayUnaryGradientKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayUnaryGradientKernel.

ArrayUnaryGradientKernel is an abstract base — you do not construct it directly. Construct one of ArrayStridedSliceGradient and pass it where a ArrayUnaryGradientKernel is accepted.

func ArrayUnaryGradientKernelFromID added in v0.17.0

func ArrayUnaryGradientKernelFromID(id objc.ID) *ArrayUnaryGradientKernel

ArrayUnaryGradientKernelFromID adopts an existing Objective-C object as a ArrayUnaryGradientKernel (nil for 0), retaining it and registering a release finalizer.

type ArrayUnaryGradientKernelProvider added in v0.17.0

type ArrayUnaryGradientKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayUnaryGradientKernelProvider is accepted wherever a MPSNDArrayUnaryGradientKernel (or one of its subclasses) is expected.

type ArrayUnaryKernel added in v0.17.0

type ArrayUnaryKernel struct {
	ArrayMultiaryKernel
}

ArrayUnaryKernel is an idiomatic wrapper over the Objective-C class MPSNDArrayUnaryKernel.

ArrayUnaryKernel is an abstract base — you do not construct it directly. Construct one of ArrayIdentity, ArrayStridedSlice and pass it where a ArrayUnaryKernel is accepted.

func ArrayUnaryKernelFromID added in v0.17.0

func ArrayUnaryKernelFromID(id objc.ID) *ArrayUnaryKernel

ArrayUnaryKernelFromID adopts an existing Objective-C object as a ArrayUnaryKernel (nil for 0), retaining it and registering a release finalizer.

func (*ArrayUnaryKernel) DilationRates added in v0.18.1

func (auk *ArrayUnaryKernel) DilationRates() MPSNDArraySizes

DilationRates returns the stride in each dimension from one PSF tap to an adjacent PSF tap. Default: 1

func (*ArrayUnaryKernel) KernelSizes added in v0.18.1

func (auk *ArrayUnaryKernel) KernelSizes() MPSNDArraySizes

KernelSizes returns the diameters of the point spread function in each dimension for a source NDArray Default: 1

func (*ArrayUnaryKernel) Offsets added in v0.18.1

func (auk *ArrayUnaryKernel) Offsets() MPSNDArrayOffsets

Offsets returns the coordinate of the position read from this source array which is used to calculate the result value at [0,0,0,....] If the position read is actually a contiguous region (e.g. the area covered by a convolution kernel) then this is the center of that region, rounded down, for each dimension. Default: 0,0,0...

func (*ArrayUnaryKernel) Strides added in v0.18.1

func (auk *ArrayUnaryKernel) Strides() MPSNDArrayOffsets

Strides returns if the filter is a "backwards" filter such as a gradient filter or convolution transpose, then this is the upsampling ratio and zeros are inserted in the result. Default: 1

type ArrayUnaryKernelProvider added in v0.17.0

type ArrayUnaryKernelProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ArrayUnaryKernelProvider is accepted wherever a MPSNDArrayUnaryKernel (or one of its subclasses) is expected.

type ArrayVectorLUTDequantize added in v0.17.0

type ArrayVectorLUTDequantize struct {
	ArrayMultiaryKernel
}

ArrayVectorLUTDequantize is an idiomatic wrapper over the Objective-C class MPSNDArrayVectorLUTDequantize.

It embeds ArrayMultiaryKernel, promoting that type's methods.

func ArrayVectorLUTDequantizeFromID added in v0.17.0

func ArrayVectorLUTDequantizeFromID(id objc.ID) *ArrayVectorLUTDequantize

ArrayVectorLUTDequantizeFromID adopts an existing Objective-C object as a ArrayVectorLUTDequantize (nil for 0), retaining it and registering a release finalizer.

func NewArrayVectorLUTDequantize added in v0.17.0

func NewArrayVectorLUTDequantize() *ArrayVectorLUTDequantize

NewArrayVectorLUTDequantize creates a new ArrayVectorLUTDequantize.

func (*ArrayVectorLUTDequantize) VectorAxis added in v0.17.0

func (avld *ArrayVectorLUTDequantize) VectorAxis() int

VectorAxis returns which axis in the destination will receive the vector component, must be less than 4.

func (*ArrayVectorLUTDequantize) WithVectorAxis added in v0.17.0

func (avld *ArrayVectorLUTDequantize) WithVectorAxis(vectorAxis int) *ArrayVectorLUTDequantize

WithVectorAxis sets which axis in the destination will receive the vector component, must be less than 4.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

type MDQueryOptionFlags int32
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MPSCustomKernelIndex

type MPSCustomKernelIndex int32
const (
	MPSCustomKernelIndexDestIndex     MPSCustomKernelIndex = 0
	MPSCustomKernelIndexSrc0Index     MPSCustomKernelIndex = 0
	MPSCustomKernelIndexSrc1Index     MPSCustomKernelIndex = 1
	MPSCustomKernelIndexSrc2Index     MPSCustomKernelIndex = 2
	MPSCustomKernelIndexSrc3Index     MPSCustomKernelIndex = 3
	MPSCustomKernelIndexSrc4Index     MPSCustomKernelIndex = 4
	MPSCustomKernelIndexUserDataIndex MPSCustomKernelIndex = 30
)

func (MPSCustomKernelIndex) String

func (e MPSCustomKernelIndex) String() string

String returns the MPSCustomKernelIndex constant's name, or its numeric form when the value is not a known constant.

type MPSDeviceCapsValues

type MPSDeviceCapsValues uint32
const (
	MPSDeviceCapsNull                        MPSDeviceCapsValues = 0
	MPSDeviceSupportsReadableArrayOfTextures MPSDeviceCapsValues = 1
	MPSDeviceSupportsWritableArrayOfTextures MPSDeviceCapsValues = 2
	MPSDeviceSupportsReadWriteTextures       MPSDeviceCapsValues = 4
	MPSDeviceSupportsSimdgroupBarrier        MPSDeviceCapsValues = 8
	MPSDeviceSupportsQuadShuffle             MPSDeviceCapsValues = 16
	MPSDeviceSupportsSimdShuffle             MPSDeviceCapsValues = 32
	MPSDeviceSupportsSimdReduction           MPSDeviceCapsValues = 64
	MPSDeviceSupportsFloat32Filtering        MPSDeviceCapsValues = 128
	MPSDeviceSupportsNorm16BicubicFiltering  MPSDeviceCapsValues = 256
	MPSDeviceSupportsFloat16BicubicFiltering MPSDeviceCapsValues = 512
	MPSDeviceIsAppleDevice                   MPSDeviceCapsValues = 1024
	MPSDeviceSupportsSimdShuffleAndFill      MPSDeviceCapsValues = 2048
	MPSDeviceSupportsBFloat16Arithmetic      MPSDeviceCapsValues = 4096
	MPSDeviceCapsLast                        MPSDeviceCapsValues = 8192
)

func (MPSDeviceCapsValues) String

func (e MPSDeviceCapsValues) String() string

String returns the MPSDeviceCapsValues constant's name, or its numeric form when the value is not a known constant.

type MPSImageType

type MPSImageType uint32
const (
	MPSImageType2d                    MPSImageType = 0
	MPSImageType2d_array              MPSImageType = 1
	MPSImageTypeArray2d               MPSImageType = 2
	MPSImageTypeArray2d_array         MPSImageType = 3
	MPSImageType_ArrayMask            MPSImageType = 1
	MPSImageType_BatchMask            MPSImageType = 2
	MPSImageType_typeMask             MPSImageType = 3
	MPSImageType_noAlpha              MPSImageType = 4
	MPSImageType_texelFormatMask      MPSImageType = 56
	MPSImageType_texelFormatShift     MPSImageType = 3
	MPSImageType_texelFormatStandard  MPSImageType = 0
	MPSImageType_texelFormatUnorm8    MPSImageType = 8
	MPSImageType_texelFormatFloat16   MPSImageType = 16
	MPSImageType_texelFormatBFloat16  MPSImageType = 24
	MPSImageType_bitCount             MPSImageType = 6
	MPSImageType_mask                 MPSImageType = 63
	MPSImageType2d_noAlpha            MPSImageType = 4
	MPSImageType2d_array_noAlpha      MPSImageType = 5
	MPSImageTypeArray2d_noAlpha       MPSImageType = 6
	MPSImageTypeArray2d_array_noAlpha MPSImageType = 7
)

func (MPSImageType) String

func (e MPSImageType) String() string

String returns the MPSImageType constant's name, or its numeric form when the value is not a known constant.

type MPSNDArrayOffsets

type MPSNDArrayOffsets struct {
	Dimensions [16]int
}

type MPSNDArraySizes

type MPSNDArraySizes struct {
	Dimensions [16]uint
}

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL