Reduce shape vertex size to 8 floats

It is not at all clear whether this is an improvement or not
This commit is contained in:
2025-11-11 21:12:50 +00:00
parent ce438b7ecd
commit 4121bfb468
6 changed files with 53 additions and 55 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#version 450 core
//struct PosColNorm { vec4 pos; vec4 norm;uint col; uint dummy; };
struct PosColNorm { vec4 pos; uint norm;uint d1;uint d2; uint d3;uint col; uint dummy; };
struct PosColNorm { vec4 pos; uint norm;uint col; };
// I don't know if the dummy is necessary
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
layout (std430, binding = 3) readonly buffer Data { PosColNorm data[]; };