Class MeshOptimizerVertexDecoder
Namespace: ValveResourceFormat.Compression
Assembly: ValveResourceFormat.dll
Provides decoding functionality for mesh optimizer vertex buffers.
csharp
public static class MeshOptimizerVertexDecoderInheritance
object ← MeshOptimizerVertexDecoder
Properties
IsHardwareAccelerated
Gets a value indicating whether hardware acceleration is available for decoding.
csharp
public static bool IsHardwareAccelerated { get; }Property Value
Methods
DecodeVertexBuffer(int, int, ReadOnlySpan<byte>, bool)
Decodes a vertex buffer from compressed format.
csharp
public static byte[] DecodeVertexBuffer(int vertexCount, int vertexSize, ReadOnlySpan<byte> buffer, bool useSimd = true)Parameters
vertexCount int
vertexSize int
buffer ReadOnlySpan<byte>
useSimd bool
Returns
byte[]
See Also
https://github.com/zeux/meshoptimizer/blob/master/src/vertexcodec.cpp

