MTLDevice_Extensions.GetHeapTextureSizeAndAlign 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從堆積配置時,取得具有指定描述之紋理的大小和對齊方式。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Metal.MTLSizeAndAlign GetHeapTextureSizeAndAlign(this Metal.IMTLDevice This, Metal.MTLTextureDescriptor desc);
static member GetHeapTextureSizeAndAlign : Metal.IMTLDevice * Metal.MTLTextureDescriptor -> Metal.MTLSizeAndAlign
參數
- This
- IMTLDevice
這個方法運作所在的 實例。
- desc
- MTLTextureDescriptor
傳回
- 屬性