Move vertex input description out of VulkanShader

This commit is contained in:
2021-01-15 16:38:07 +01:00
parent eec33c30dc
commit e737a3ce95
4 changed files with 65 additions and 10 deletions

View File

@@ -52,6 +52,7 @@ public:
cam.SetMatrix(Utils::translate(Matrix4f(1), Vector3f_SIMD(0,0,-10)));
shader.AddShaderProgram(ShaderProgramType::VERTEX, "Shader/basic");
shader.AddShaderProgram(ShaderProgramType::FRAGMENT, "Shader/basic");
shader.AddVertexInputDescription(openVulkanoCpp::Vertex::GetVertexInputDescription());
drawablesPool.resize(GEOS);
for(int i = 0; i < GEOS; i++)
{