graphics: store vertex attribute bindings without duplicated arrays

This commit is contained in:
nmzik
2026-09-29 03:25:22 +04:00
parent 8e42e99788
commit b43bf9f7fb
6 changed files with 115 additions and 79 deletions
+1 -3
View File
@@ -14062,9 +14062,7 @@ public:
vertex.resources_num = 2;
vertex.buffers_num = 1;
vertex.buffers[0].stride = 6 * sizeof(float);
vertex.buffers[0].attr_num = 2;
vertex.buffers[0].attr_indices[1] = 1;
vertex.buffers[0].attr_offsets[1] = 2 * sizeof(float);
vertex.resources[1].UpdateAddress48(2 * sizeof(float));
for (uint32_t i = 0; i < 2; i++) {
const auto format = i == 0 ? Prospero::BufferFormat::k32_32Float
: packed_vertex_color ? Prospero::BufferFormat::k11_11_10Float