MPSGraph_MPSGraphSampleGrid.SampleGrid 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
SampleGrid(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensorNamedDataLayout, Boolean, Boolean, Boolean, MPSGraphPaddingMode, MPSGraphResizeMode, Double, String)
[Foundation.Export("sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor SampleGrid(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, MetalPerformanceShadersGraph.MPSGraphTensor coordinates, MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout layout, bool normalizeCoordinates, bool relativeCoordinates, bool alignCorners, MetalPerformanceShadersGraph.MPSGraphPaddingMode paddingMode, MetalPerformanceShadersGraph.MPSGraphResizeMode samplingMode, double constantValue, string? name);
[<Foundation.Export("sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:samplingMode:constantValue:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member SampleGrid : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout * bool * bool * bool * MetalPerformanceShadersGraph.MPSGraphPaddingMode * MetalPerformanceShadersGraph.MPSGraphResizeMode * double * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- coordinates
- MPSGraphTensor
- normalizeCoordinates
- Boolean
- relativeCoordinates
- Boolean
- alignCorners
- Boolean
- paddingMode
- MPSGraphPaddingMode
- samplingMode
- MPSGraphResizeMode
- constantValue
- Double
- name
- String
Returns
- Attributes
Applies to
SampleGrid(MPSGraph, MPSGraphTensor, MPSGraphTensor, MPSGraphTensorNamedDataLayout, Boolean, Boolean, Boolean, MPSGraphPaddingMode, MPSGraphResizeNearestRoundingMode, Double, String)
[Foundation.Export("sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor SampleGrid(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor source, MetalPerformanceShadersGraph.MPSGraphTensor coordinates, MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout layout, bool normalizeCoordinates, bool relativeCoordinates, bool alignCorners, MetalPerformanceShadersGraph.MPSGraphPaddingMode paddingMode, MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode nearestRoundingMode, double constantValue, string? name);
[<Foundation.Export("sampleGridWithSourceTensor:coordinateTensor:layout:normalizeCoordinates:relativeCoordinates:alignCorners:paddingMode:nearestRoundingMode:constantValue:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member SampleGrid : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensor * MetalPerformanceShadersGraph.MPSGraphTensorNamedDataLayout * bool * bool * bool * MetalPerformanceShadersGraph.MPSGraphPaddingMode * MetalPerformanceShadersGraph.MPSGraphResizeNearestRoundingMode * double * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- This
- MPSGraph
- source
- MPSGraphTensor
- coordinates
- MPSGraphTensor
- normalizeCoordinates
- Boolean
- relativeCoordinates
- Boolean
- alignCorners
- Boolean
- paddingMode
- MPSGraphPaddingMode
- nearestRoundingMode
- MPSGraphResizeNearestRoundingMode
- constantValue
- Double
- name
- String
Returns
- Attributes