共用方式為


MPSNNGradientState 建構函式

定義

多載

MPSNNGradientState(NSObjectFlag)
MPSNNGradientState(IMTLResource)
MPSNNGradientState(IMTLResource[])
MPSNNGradientState(IntPtr)
MPSNNGradientState(IMTLDevice, MTLTextureDescriptor)
MPSNNGradientState(IMTLDevice, MPSStateResourceList)
MPSNNGradientState(IMTLDevice, nuint)

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
屬性

適用於

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
屬性

適用於