Class ToolsBufferMatcher
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
Pairs a mesh's tools buffers with the render vertex buffers they augment, matching on element count and consuming each tools buffer at most once.
public sealed class ToolsBufferMatcherInheritance
Constructors
ToolsBufferMatcher(VBIB)
Initializes a new instance of the class over a mesh's buffers.
public ToolsBufferMatcher(VBIB vbib)Parameters
vbib VBIB
Properties
IsEmpty
Gets whether the mesh carries no tools buffers at all.
public bool IsEmpty { get; }Property Value
Methods
TryClaim(uint)
Claims the first unclaimed tools buffer describing the given number of vertices, or returns null when none is left.
public VBIB.OnDiskBufferData? TryClaim(uint elementCount)Parameters
elementCount uint
Returns
TryClaimMerged(IReadOnlyList<OnDiskBufferData>)
Claims and concatenates the tools buffer matching each of the given, already order-matched vertex buffers. Returns null, claiming nothing, unless every one of them has a tools buffer left to claim and those tools buffers share a layout.
public VBIB.OnDiskBufferData? TryClaimMerged(IReadOnlyList<VBIB.OnDiskBufferData> vertexBuffers)Parameters
vertexBuffers IReadOnlyList<VBIB.OnDiskBufferData>

