Editor/Embedded/ValveResourceFormat/RenderPrimitiveType.cs

Defines an enumeration for render primitive types used in mesh drawing within the Valve Resource Format. Maps specific constants to various vertex structures like points, lines, triangles, and various control point patch lists.

#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat.Utils;
namespace HumanoidRetargeter.EditorTools.Embedded.ValveResourceFormat;

    /// <summary>
    /// Render primitive types for mesh drawing.
    /// </summary>
    public enum RenderPrimitiveType //: byte
    {
#pragma warning disable CS1591
        RENDER_PRIM_POINTS = 0x0,
        RENDER_PRIM_LINES = 0x1,
        RENDER_PRIM_LINES_WITH_ADJACENCY = 0x2,
        RENDER_PRIM_LINE_STRIP = 0x3,
        RENDER_PRIM_LINE_STRIP_WITH_ADJACENCY = 0x4,
        RENDER_PRIM_TRIANGLES = 0x5,
        RENDER_PRIM_TRIANGLES_WITH_ADJACENCY = 0x6,
        RENDER_PRIM_TRIANGLE_STRIP = 0x7,
        RENDER_PRIM_TRIANGLE_STRIP_WITH_ADJACENCY = 0x8,
        RENDER_PRIM_INSTANCED_QUADS = 0x9,
        RENDER_PRIM_HETEROGENOUS = 0xA,
        RENDER_PRIM_1_CONTROL_POINT_PATCHLIST = 0xB,
        RENDER_PRIM_2_CONTROL_POINT_PATCHLIST = 0xC,
        RENDER_PRIM_3_CONTROL_POINT_PATCHLIST = 0xD,
        RENDER_PRIM_4_CONTROL_POINT_PATCHLIST = 0xE,
        RENDER_PRIM_5_CONTROL_POINT_PATCHLIST = 0xF,
        RENDER_PRIM_6_CONTROL_POINT_PATCHLIST = 0x10,
        RENDER_PRIM_7_CONTROL_POINT_PATCHLIST = 0x11,
        RENDER_PRIM_8_CONTROL_POINT_PATCHLIST = 0x12,
        RENDER_PRIM_9_CONTROL_POINT_PATCHLIST = 0x13,
        RENDER_PRIM_10_CONTROL_POINT_PATCHLIST = 0x14,
        RENDER_PRIM_11_CONTROL_POINT_PATCHLIST = 0x15,
        RENDER_PRIM_12_CONTROL_POINT_PATCHLIST = 0x16,
        RENDER_PRIM_13_CONTROL_POINT_PATCHLIST = 0x17,
        RENDER_PRIM_14_CONTROL_POINT_PATCHLIST = 0x18,
        RENDER_PRIM_15_CONTROL_POINT_PATCHLIST = 0x19,
        RENDER_PRIM_16_CONTROL_POINT_PATCHLIST = 0x1A,
        RENDER_PRIM_17_CONTROL_POINT_PATCHLIST = 0x1B,
        RENDER_PRIM_18_CONTROL_POINT_PATCHLIST = 0x1C,
        RENDER_PRIM_19_CONTROL_POINT_PATCHLIST = 0x1D,
        RENDER_PRIM_20_CONTROL_POINT_PATCHLIST = 0x1E,
        RENDER_PRIM_21_CONTROL_POINT_PATCHLIST = 0x1F,
        RENDER_PRIM_22_CONTROL_POINT_PATCHLIST = 0x20,
        RENDER_PRIM_23_CONTROL_POINT_PATCHLIST = 0x21,
        RENDER_PRIM_24_CONTROL_POINT_PATCHLIST = 0x22,
        RENDER_PRIM_25_CONTROL_POINT_PATCHLIST = 0x23,
        RENDER_PRIM_26_CONTROL_POINT_PATCHLIST = 0x24,
        RENDER_PRIM_27_CONTROL_POINT_PATCHLIST = 0x25,
        RENDER_PRIM_28_CONTROL_POINT_PATCHLIST = 0x26,
        RENDER_PRIM_29_CONTROL_POINT_PATCHLIST = 0x27,
        RENDER_PRIM_30_CONTROL_POINT_PATCHLIST = 0x28,
        RENDER_PRIM_31_CONTROL_POINT_PATCHLIST = 0x29,
        RENDER_PRIM_32_CONTROL_POINT_PATCHLIST = 0x2A,
#pragma warning restore CS1591
    }