summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-16 14:57:16 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-16 14:57:16 -0500
commit15524958f409b1f13a1deffc4dd8c1fbddefaf28 (patch)
tree803313d44006be0f35e393e43a04b02dbed82989 /editor
parent727c5e90798455703b88834aa864df94837e8956 (diff)
pke: CompGrBinds sub-structs
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index dfa766c..e67ee12 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -1014,28 +1014,28 @@ void RecordImGui_CompGrBinds(bool readonly, CompGrBinds *component) {
ImGui::InputScalarN("VkPipelineDescriptorSets", ImGuiDataType_U64, &component->vkDescriptorSets, MAX_FRAMES_IN_FLIGHT, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
}
- if (component->vertexBuffer)
- ImGui::InputScalar("VkVertexBuffer", ImGuiDataType_U64, &component->vertexBuffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
- ImGui::InputScalar("VertexFirstBinding", ImGuiDataType_U32, &component->vertexFirstBinding, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("VertexBindingCount", ImGuiDataType_U32, &component->vertexBindingCount, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("VertexOffsets", ImGuiDataType_U64, &component->vertexOffsets, nullptr, nullptr, nullptr, inputTextFlags);
-
- if (component->normalsBuffer)
- ImGui::InputScalar("VkNormalBuffer", ImGuiDataType_U64, &component->normalsBuffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
- ImGui::InputScalar("NormalFirstBinding", ImGuiDataType_U32, &component->normalsFirstBinding, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("NormalBindingCount", ImGuiDataType_U32, &component->normalsBindingCount, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("NormalOffsets", ImGuiDataType_U64, &component->normalsOffsets, nullptr, nullptr, nullptr, inputTextFlags);
-
- if (component->uvBuffer)
- ImGui::InputScalar("VkUVBuffer", ImGuiDataType_U64, &component->uvBuffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
- ImGui::InputScalar("UVFirstBinding", ImGuiDataType_U32, &component->uvFirstBinding, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("UVBindingCount", ImGuiDataType_U32, &component->uvBindingCount, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("UVOffsets", ImGuiDataType_U64, &component->uvOffsets, nullptr, nullptr, nullptr, inputTextFlags);
-
- if (component->indexBuffer)
- ImGui::InputScalar("VkIndexBuffer", ImGuiDataType_U64, &component->indexBuffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
- ImGui::InputScalar("IndexBindingCount", ImGuiDataType_U32, &component->indexBindingCount, nullptr, nullptr, nullptr, inputTextFlags);
- ImGui::InputScalar("IndexOffsets", ImGuiDataType_U64, &component->indexOffsets, nullptr, nullptr, nullptr, inputTextFlags);
+ if (component->vertexBD.buffer)
+ ImGui::InputScalar("VkVertexBuffer", ImGuiDataType_U64, &component->vertexBD.buffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
+ ImGui::InputScalar("VertexFirstBinding", ImGuiDataType_U32, &component->vertexBD.firstBinding, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("VertexBindingCount", ImGuiDataType_U32, &component->vertexBD.bindingCount, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("VertexOffsets", ImGuiDataType_U64, &component->vertexBD.offsets[0], nullptr, nullptr, nullptr, inputTextFlags);
+
+ if (component->normalsBD.buffer)
+ ImGui::InputScalar("VkNormalBuffer", ImGuiDataType_U64, &component->normalsBD.buffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
+ ImGui::InputScalar("NormalFirstBinding", ImGuiDataType_U32, &component->normalsBD.firstBinding, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("NormalBindingCount", ImGuiDataType_U32, &component->normalsBD.bindingCount, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("NormalOffsets", ImGuiDataType_U64, &component->normalsBD.offsets[0], nullptr, nullptr, nullptr, inputTextFlags);
+
+ if (component->uvBD.buffer)
+ ImGui::InputScalar("VkUVBuffer", ImGuiDataType_U64, &component->uvBD.buffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
+ ImGui::InputScalar("UVFirstBinding", ImGuiDataType_U32, &component->uvBD.firstBinding, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("UVBindingCount", ImGuiDataType_U32, &component->uvBD.bindingCount, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("UVOffsets", ImGuiDataType_U64, &component->uvBD.offsets[0], nullptr, nullptr, nullptr, inputTextFlags);
+
+ if (component->indexBD.buffer)
+ ImGui::InputScalar("VkIndexBuffer", ImGuiDataType_U64, &component->indexBD.buffer, nullptr, nullptr, "0x%016lX", ImGuiInputTextFlags_ReadOnly);
+ ImGui::InputScalar("IndexBindingCount", ImGuiDataType_U32, &component->indexBD.firstBinding, nullptr, nullptr, nullptr, inputTextFlags);
+ ImGui::InputScalar("IndexOffsets", ImGuiDataType_U64, &component->indexBD.offsets[0], nullptr, nullptr, nullptr, inputTextFlags);
ImGui::InputScalar("IndexCount", ImGuiDataType_U32, &component->indexCount, nullptr, nullptr, nullptr, inputTextFlags);
if (component->instanceBuffer)