Skip to content

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

IEquatable<ImageBarrier>

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

ImageState

BaseLayer

public uint BaseLayer { get; init; }

Property Value

uint

BaseMip

public uint BaseMip { get; init; }

Property Value

uint

Before

public ImageState Before { get; init; }

Property Value

ImageState

Image

public GpuImage Image { get; init; }

Property Value

GpuImage

LayerCount

public uint LayerCount { get; init; }

Property Value

uint

MipCount

public uint MipCount { get; init; }

Property Value

uint

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

Returns

ImageBarrier