Class MetalImage¶
Namespace: Apogee.Graphics.Metal
Assembly: Apogee.Graphics.dll
A Metal texture, or a window's drawable texture that is borrowed for a frame (
public sealed class MetalImage : GpuImage, IDisposable
Inheritance¶
object ← GpuImage ← MetalImage
Implements¶
Inherited Members¶
GpuImage.Description, GpuImage.Format, GpuImage.Width, GpuImage.Height, GpuImage.MipLevels, GpuImage.Layers, GpuImage.View, GpuImage.CreateView(uint, uint, uint, uint), GpuImage.DestroyView(ImageView), GpuImage.Dispose(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Properties¶
Handle¶
public Texture* Handle { get; }
Property Value¶
Texture*
Layers¶
The number of array layers (six per cube).
public override uint Layers { get; }
Property Value¶
View¶
A view of every mip and layer, with the aspect a shader samples (depth only for a depth-stencil format).
public override ImageView View { get; }
Property Value¶
Methods¶
CreateView(uint, uint, uint, uint)¶
Creates an extra view (one mip for a compute pass, one layer for a render target). The caller destroys it with
public override ImageView CreateView(uint baseMip, uint mipCount, uint baseLayer, uint layerCount)
Parameters¶
baseMip uint
mipCount uint
baseLayer uint
layerCount uint
Returns¶
DestroyView(ImageView)¶
public override void DestroyView(ImageView view)
Parameters¶
view ImageView
Dispose()¶
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()