共用方式為


MTLRenderPassDescriptor.GetSamplePositions 方法

定義

多載

GetSamplePositions(IntPtr, nuint)

positionscount 填滿可程式化的範例位置。

GetSamplePositions(MTLSamplePosition[])

positions填滿可程式化的範例位置。

GetSamplePositions(IntPtr, nuint)

positionscount 填滿可程式化的範例位置。

[Foundation.Export("getSamplePositions:count:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nuint GetSamplePositions (IntPtr positions, nuint count);
abstract member GetSamplePositions : nativeint * nuint -> nuint
override this.GetSamplePositions : nativeint * nuint -> nuint

參數

positions
IntPtr

nativeint

要填入範例位置的陣列。 可以是 null

這個參數可以是 null

count
System.System.UIntPtr System.unativeint

要取得的貼文數目。

傳回

System.System.UIntPtr System.unativeint
屬性

適用於

GetSamplePositions(MTLSamplePosition[])

positions填滿可程式化的範例位置。

public nuint GetSamplePositions (Metal.MTLSamplePosition[] positions);
member this.GetSamplePositions : Metal.MTLSamplePosition[] -> nuint

參數

positions
MTLSamplePosition[]

要填入範例位置的陣列。

傳回

System.System.UIntPtr System.unativeint

適用於