Use löve's uniform data object for vulkan shader

This commit is contained in:
niki
2022-06-13 16:50:12 +02:00
parent 12b9978173
commit c996860602
6 changed files with 101 additions and 71 deletions
-13
View File
@@ -40,20 +40,7 @@ namespace love {
void setVideoTextures(graphics::Texture* ytexture, graphics::Texture* cbtexture, graphics::Texture* crtexture) override {}
struct UniformBufferObject {
float windowWidth;
float windowHeight;
};
private:
struct Vec4 {
float x, y, z, w;
};
struct LoveUniformsPerDraw {
Vec4 uniformsPerDraw[13];
};
std::vector<VkPipelineShaderStageCreateInfo> shaderStages;
std::map<std::string, int> vertexAttributeIndices = {