rsx: Refactor index buffers

- Index offset is ignored anyway and only used to calculate vertex attribute divisor index
- Specialized optimization for untouched xfer without primitive restart
This commit is contained in:
kd-11 2019-01-14 15:33:05 +03:00 committed by kd-11
parent afeacc171f
commit 417a2e6731
14 changed files with 283 additions and 210 deletions

View file

@ -45,6 +45,7 @@ void GLVertexDecompilerThread::insertHeader(std::stringstream &OS)
OS << "layout(std140, binding = 1) uniform VertexLayoutBuffer\n";
OS << "{\n";
OS << " uint vertex_base_index;\n";
OS << " uint vertex_index_offset;\n";
OS << " uvec4 input_attributes_blob[16 / 2];\n";
OS << "};\n\n";
}