MPSNNReshape.Encode Method
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.
Overloads
| Name | Description |
|---|---|
| Encode(IMTLCommandBuffer, MPSImage, UIntPtr, UIntPtr, UIntPtr) | |
| Encode(IMTLCommandBuffer, MPSImage, MPSState, Boolean, UIntPtr, UIntPtr, UIntPtr) |
Encode(IMTLCommandBuffer, MPSImage, UIntPtr, UIntPtr, UIntPtr)
[Foundation.Export("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSImage Encode(Metal.IMTLCommandBuffer commandBuffer, MetalPerformanceShaders.MPSImage sourceImage, UIntPtr reshapedWidth, UIntPtr reshapedHeight, UIntPtr reshapedFeatureChannels);
[<Foundation.Export("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Encode : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * unativeint * unativeint * unativeint -> MetalPerformanceShaders.MPSImage
override this.Encode : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * unativeint * unativeint * unativeint -> MetalPerformanceShaders.MPSImage
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceImage
- MPSImage
- reshapedWidth
-
UIntPtr
unativeint
- reshapedHeight
-
UIntPtr
unativeint
- reshapedFeatureChannels
-
UIntPtr
unativeint
Returns
- Attributes
Applies to
Encode(IMTLCommandBuffer, MPSImage, MPSState, Boolean, UIntPtr, UIntPtr, UIntPtr)
[Foundation.Export("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MetalPerformanceShaders.MPSImage Encode(Metal.IMTLCommandBuffer commandBuffer, MetalPerformanceShaders.MPSImage sourceImage, out MetalPerformanceShaders.MPSState? outState, bool isTemporary, UIntPtr reshapedWidth, UIntPtr reshapedHeight, UIntPtr reshapedFeatureChannels);
[<Foundation.Export("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Encode : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MPSState * bool * unativeint * unativeint * unativeint -> MetalPerformanceShaders.MPSImage
override this.Encode : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSImage * MPSState * bool * unativeint * unativeint * unativeint -> MetalPerformanceShaders.MPSImage
Parameters
- commandBuffer
- IMTLCommandBuffer
- sourceImage
- MPSImage
- outState
- MPSState
- isTemporary
- Boolean
- reshapedWidth
-
UIntPtr
unativeint
- reshapedHeight
-
UIntPtr
unativeint
- reshapedFeatureChannels
-
UIntPtr
unativeint
Returns
- Attributes