MPSNNGradientState.CreateTemporaryState 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateTemporaryState(IMTLCommandBuffer)
[Foundation.Export("temporaryStateWithCommandBuffer:")]
public static MetalPerformanceShaders.MPSNNGradientState CreateTemporaryState (Metal.IMTLCommandBuffer commandBuffer);
static member CreateTemporaryState : Metal.IMTLCommandBuffer -> MetalPerformanceShaders.MPSNNGradientState
參數
- commandBuffer
- IMTLCommandBuffer
傳回
- 屬性
適用於
CreateTemporaryState(IMTLCommandBuffer, MTLTextureDescriptor)
[Foundation.Export("temporaryStateWithCommandBuffer:textureDescriptor:")]
public static MetalPerformanceShaders.MPSNNGradientState CreateTemporaryState (Metal.IMTLCommandBuffer commandBuffer, Metal.MTLTextureDescriptor descriptor);
static member CreateTemporaryState : Metal.IMTLCommandBuffer * Metal.MTLTextureDescriptor -> MetalPerformanceShaders.MPSNNGradientState
參數
- commandBuffer
- IMTLCommandBuffer
- descriptor
- MTLTextureDescriptor
傳回
- 屬性
適用於
CreateTemporaryState(IMTLCommandBuffer, MPSStateResourceList)
[Foundation.Export("temporaryStateWithCommandBuffer:resourceList:")]
public static MetalPerformanceShaders.MPSNNGradientState CreateTemporaryState (Metal.IMTLCommandBuffer commandBuffer, MetalPerformanceShaders.MPSStateResourceList resourceList);
static member CreateTemporaryState : Metal.IMTLCommandBuffer * MetalPerformanceShaders.MPSStateResourceList -> MetalPerformanceShaders.MPSNNGradientState
參數
- commandBuffer
- IMTLCommandBuffer
- resourceList
- MPSStateResourceList
傳回
- 屬性
適用於
CreateTemporaryState(IMTLCommandBuffer, nuint)
[Foundation.Export("temporaryStateWithCommandBuffer:bufferSize:")]
public static MetalPerformanceShaders.MPSNNGradientState CreateTemporaryState (Metal.IMTLCommandBuffer commandBuffer, nuint bufferSize);
static member CreateTemporaryState : Metal.IMTLCommandBuffer * nuint -> MetalPerformanceShaders.MPSNNGradientState
參數
- commandBuffer
- IMTLCommandBuffer
- bufferSize
- System.System.UIntPtr System.unativeint
傳回
- 屬性