MPSKernel Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class that represents the kernel of a shader.
[Foundation.Register("MPSKernel", true)]
public class MPSKernel : Foundation.NSObject, Foundation.INSCopying, Foundation.INSSecureCoding, IDisposable
[<Foundation.Register("MPSKernel", true)>]
type MPSKernel = class
inherit NSObject
interface INSCoding
interface INativeObject
interface IDisposable
interface INSCopying
interface INSSecureCoding
- Inheritance
- Derived
- Attributes
- Implements
Remarks
Application developers should not create instances of this class directly. Instead, developers should use any fo the numerous shaders that derive from this class that Metal Performance Shaders provides.
To use a shader, application developers: first instantiate one (For example, MPSImageGaussianBlur); set properties on the shader and encode it to a MPSCommandBuffer, optionally encoding other operations on it; and, finally, commit the command buffer to be run.
Constructors
| Name | Description |
|---|---|
| MPSKernel(IMTLDevice) |
Creates a new kernel that can run on the specified device, if supported. |
| MPSKernel(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| MPSKernel(NSCoder, IMTLDevice) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| MPSKernel(NSCoder) |
A constructor that initializes the object from the data stored in the unarchiver object. |
| MPSKernel(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Device |
Gets the device for which the kernel will be encoded. |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| Label |
Gets or sets a programmer-friendly name for the shader |
| Options |
Gets or sets the list of kernel options for running the shader. |
| RectNoClip |
Gets a region that represents the default clipping rectangle. |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Zone | (Inherited from NSObject) |