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
public readonly record struct SubresourceRange : IEquatable<SubresourceRange>
Implements¶
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
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¶
BaseMip¶
public uint BaseMip { get; init; }
Property Value¶
LayerCount¶
public uint LayerCount { get; init; }
Property Value¶
MipCount¶
public uint MipCount { get; init; }
Property Value¶
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¶
Layers(uint, uint)¶
Several array layers, every mip level.
public static SubresourceRange Layers(uint baseLayer, uint count = 4294967295)
Parameters¶
baseLayer uint
count uint
Returns¶
Mip(uint)¶
One mip level, every layer.
public static SubresourceRange Mip(uint level)
Parameters¶
level uint
Returns¶
Mips(uint, uint)¶
Several mip levels, every layer.
public static SubresourceRange Mips(uint baseMip, uint count = 4294967295)
Parameters¶
baseMip uint
count uint
Returns¶
Of(uint, uint)¶
One mip level of one layer.
public static SubresourceRange Of(uint mip, uint layer)
Parameters¶
mip uint
layer uint
Returns¶
ToString()¶
Returns the fully qualified type name of this instance.
public override string ToString()
Returns¶
The fully qualified type name.