TESTGPUMC: fixed size of the struct

master
Martin Gerhardy 2022-05-17 23:42:07 +02:00
parent e068fb701e
commit d57c4244cc
1 changed files with 2 additions and 2 deletions

View File

@ -198,8 +198,8 @@ app::AppState TestGPUMC::onInit() {
_vboIdx = _vbo.create();
struct V {
glm::vec3 pos;
glm::vec3 norm;
glm::vec<3, float, glm::highp> pos;
glm::vec<3, float, glm::highp> norm;
};
static_assert(sizeof(V) == 24, "Padding/Alignment doesn't match requirements");
_vbo.addAttribute(_renderShader.getPosAttribute(_vboIdx, &V::pos));