implement basic per frame uniform variables

This commit is contained in:
niki
2022-03-22 14:31:50 +01:00
parent 157c8f8a20
commit 158052c52c
7 changed files with 133 additions and 6 deletions
+7
View File
@@ -40,6 +40,11 @@ namespace love {
void setVideoTextures(Texture* ytexture, Texture* cbtexture, Texture* crtexture) override {}
struct UniformBufferObject {
float windowWidth;
float windowHeight;
};
private:
struct Vec4 {
float x, y, z, w;
@@ -64,6 +69,8 @@ namespace love {
{ "love_VideoCrChannel", 3 },
{ "MainTex", 4 }
};
};
}
}