MPSNNGradientState 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MPSNNGradientState(NSObjectFlag)
protected MPSNNGradientState (Foundation.NSObjectFlag t);
new MetalPerformanceShaders.MPSNNGradientState : Foundation.NSObjectFlag -> MetalPerformanceShaders.MPSNNGradientState
參數
適用於
MPSNNGradientState(IMTLResource)
[Foundation.Export("initWithResource:")]
public MPSNNGradientState (Metal.IMTLResource resource);
new MetalPerformanceShaders.MPSNNGradientState : Metal.IMTLResource -> MetalPerformanceShaders.MPSNNGradientState
參數
- resource
- IMTLResource
- 屬性
適用於
MPSNNGradientState(IMTLResource[])
[Foundation.Export("initWithResources:")]
public MPSNNGradientState (Metal.IMTLResource[] resources);
new MetalPerformanceShaders.MPSNNGradientState : Metal.IMTLResource[] -> MetalPerformanceShaders.MPSNNGradientState
參數
- resources
- IMTLResource[]
- 屬性
適用於
MPSNNGradientState(IntPtr)
protected internal MPSNNGradientState (IntPtr handle);
new MetalPerformanceShaders.MPSNNGradientState : nativeint -> MetalPerformanceShaders.MPSNNGradientState
參數
- handle
-
IntPtr
nativeint
適用於
MPSNNGradientState(IMTLDevice, MTLTextureDescriptor)
[Foundation.Export("initWithDevice:textureDescriptor:")]
public MPSNNGradientState (Metal.IMTLDevice device, Metal.MTLTextureDescriptor descriptor);
new MetalPerformanceShaders.MPSNNGradientState : Metal.IMTLDevice * Metal.MTLTextureDescriptor -> MetalPerformanceShaders.MPSNNGradientState
參數
- device
- IMTLDevice
- descriptor
- MTLTextureDescriptor
- 屬性
適用於
MPSNNGradientState(IMTLDevice, MPSStateResourceList)
[Foundation.Export("initWithDevice:resourceList:")]
public MPSNNGradientState (Metal.IMTLDevice device, MetalPerformanceShaders.MPSStateResourceList resourceList);
new MetalPerformanceShaders.MPSNNGradientState : Metal.IMTLDevice * MetalPerformanceShaders.MPSStateResourceList -> MetalPerformanceShaders.MPSNNGradientState
參數
- device
- IMTLDevice
- resourceList
- MPSStateResourceList
- 屬性
適用於
MPSNNGradientState(IMTLDevice, nuint)
[Foundation.Export("initWithDevice:bufferSize:")]
public MPSNNGradientState (Metal.IMTLDevice device, nuint bufferSize);
new MetalPerformanceShaders.MPSNNGradientState : Metal.IMTLDevice * nuint -> MetalPerformanceShaders.MPSNNGradientState
參數
- device
- IMTLDevice
- bufferSize
- System.System.UIntPtr System.unativeint
- 屬性