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,5 +1,5 @@
#version 450 core
struct PosColNorm { vec4 pos; vec4 col; vec4 norm; };
struct PosColNorm { vec4 pos; vec4 dummy; };
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
layout (std430, binding = 3) readonly buffer Data { PosColNorm data[]; };
layout (std430, binding = 4) readonly buffer Indices { uint indices[]; };
+1 -1
View File
@@ -1,5 +1,5 @@
#version 450 core
struct PosColNorm { vec4 pos; vec4 col; vec4 norm; };
struct PosColNorm { vec4 pos; vec4 dummy; };
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
layout (std430, binding = 3) readonly buffer Data { PosColNorm data[]; };
layout (std430, binding = 5) readonly buffer Indices { uint indices[]; };