mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
graphics: store vertex attribute bindings without duplicated arrays
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user