Use separate pushbuffers for UBO/Index/Vertex. This will make decoding directly into the pushbuffers easier, plus other benefits later.

(For example, we'll often be able to avoid rebinding the vertex and
index buffers at new offsets by just keep counting upwards between draws,
if the vertex format is the same but other state changed)
This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:31:02 +01:00
1 parent 966cb89d41
commit f7113bb2e3
4 files changed
+46 -29

No files matched your search

+4 -2
View File
@@ -440,7 +440,7 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) {
"Vertex shaders loaded: %i\n"
"Fragment shaders loaded: %i\n"
"Combined shaders loaded: %i\n"
"Pushbuffer space used: %i\n",
"Pushbuffer space used: UBO %d, Vtx %d, Idx %d\n",
gpuStats.numVBlanks,
gpuStats.msProcessingDisplayLists * 1000.0f,
kernelStats.msInSyscalls * 1000.0f,
@@ -465,7 +465,9 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) {
gpuStats.numVertexShaders,
gpuStats.numFragmentShaders,
gpuStats.numShaders,
gpuStats.pushSpaceUsed
gpuStats.pushUBOSpaceUsed,
gpuStats.pushVertexSpaceUsed,
gpuStats.pushIndexSpaceUsed
);
stats[bufsize - 1] = '\0';
gpuStats.ResetFrame();