Skip to content

Struct SubresourceRange

Namespace: Apogee.Rendering.Graph
Assembly: Apogee.Rendering.dll

A rectangle of an image's subresources: some mip levels of some array layers (six per cube). A pass that declares one of these uses only that part of the image, and the graph tracks and transitions the parts separately. A count of means every level or layer that remains.

public readonly record struct SubresourceRange : IEquatable<SubresourceRange>

Implements

IEquatable<SubresourceRange>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SubresourceRange(uint, uint, uint, uint)

A rectangle of an image's subresources: some mip levels of some array layers (six per cube). A pass that declares one of these uses only that part of the image, and the graph tracks and transitions the parts separately. A count of means every level or layer that remains.

public SubresourceRange(uint BaseMip, uint MipCount, uint BaseLayer, uint LayerCount)

Parameters

BaseMip uint

MipCount uint

BaseLayer uint

LayerCount uint

Properties

BaseLayer

public uint BaseLayer { get; init; }

Property Value

uint

BaseMip

public uint BaseMip { get; init; }

Property Value

uint

LayerCount

public uint LayerCount { get; init; }

Property Value

uint

MipCount

public uint MipCount { get; init; }

Property Value

uint

Methods

Layer(uint)

One array layer (a cube face is a layer), every mip level.

public static SubresourceRange Layer(uint layer)

Parameters

layer uint

Returns

SubresourceRange

Layers(uint, uint)

Several array layers, every mip level.

public static SubresourceRange Layers(uint baseLayer, uint count = 4294967295)

Parameters

baseLayer uint

count uint

Returns

SubresourceRange

Mip(uint)

One mip level, every layer.

public static SubresourceRange Mip(uint level)

Parameters

level uint

Returns

SubresourceRange

Mips(uint, uint)

Several mip levels, every layer.

public static SubresourceRange Mips(uint baseMip, uint count = 4294967295)

Parameters

baseMip uint

count uint

Returns

SubresourceRange

Of(uint, uint)

One mip level of one layer.

public static SubresourceRange Of(uint mip, uint layer)

Parameters

mip uint

layer uint

Returns

SubresourceRange

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.