Struct ImageBarrier¶
Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll
One image transition: from the state it was last used in to the state the next use needs.
public readonly record struct ImageBarrier : IEquatable<ImageBarrier>
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
ImageBarrier(GpuImage, ImageState, ImageState, uint, uint, uint, uint)¶
One image transition: from the state it was last used in to the state the next use needs.
public ImageBarrier(GpuImage Image, ImageState Before, ImageState After, uint BaseMip = 0, uint MipCount = 4294967295, uint BaseLayer = 0, uint LayerCount = 4294967295)
Parameters¶
Image GpuImage
Before ImageState
After ImageState
BaseMip uint
MipCount uint
BaseLayer uint
LayerCount uint
Properties¶
After¶
public ImageState After { get; init; }
Property Value¶
BaseLayer¶
public uint BaseLayer { get; init; }
Property Value¶
BaseMip¶
public uint BaseMip { get; init; }
Property Value¶
Before¶
public ImageState Before { get; init; }
Property Value¶
Image¶
public GpuImage Image { get; init; }
Property Value¶
LayerCount¶
public uint LayerCount { get; init; }
Property Value¶
MipCount¶
public uint MipCount { get; init; }
Property Value¶
Methods¶
For(GpuImage, ImageState, ImageState, uint, uint, uint, uint)¶
public static ImageBarrier For(GpuImage image, ImageState before, ImageState after, uint baseMip = 0, uint mipCount = 4294967295, uint baseLayer = 0, uint layerCount = 4294967295)
Parameters¶
image GpuImage
before ImageState
after ImageState
baseMip uint
mipCount uint
baseLayer uint
layerCount uint