applySkinInDecode belongs in the VertexTypeID, not in the options.

This commit is contained in:
Henrik Rydgård
2024-12-17 18:15:52 +01:00
parent ee2f221938
commit e74101a2fb
13 changed files with 64 additions and 58 deletions
+3 -5
View File
@@ -1360,15 +1360,13 @@ void ImGeStateWindow::Draw(ImConfig &cfg, ImControl &control, GPUDebugInterface
if (!gpuDebug->GetCurrentSimpleVertices(rowCount_, vertices, indices)) {
rowCount_ = 0;
}
VertexDecoderOptions options{};
// TODO: Maybe an option?
options.applySkinInDecode = true;
auto buildVertexTable = [&](bool raw) {
// Ignore indices for now.
if (ImGui::BeginTable("rawverts", VERTEXLIST_COL_COUNT + 1, tableFlags)) {
static VertexDecoder decoder;
decoder.SetVertexType(state.vertType, options);
u32 vertTypeID = GetVertTypeID(state.vertType, state.getUVGenMode(), true);
VertexDecoderOptions options{};
decoder.SetVertexType(vertTypeID, options);
static const char * const colNames[] = {
"Index",