mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
vulkan: fix video rendering
When rewriting the shader part rendering videos was broken. This commit fixes that again.
This commit is contained in:
@@ -42,6 +42,9 @@ public:
|
||||
const UniformInfo* getUniformInfo(const std::string& name) const override { return nullptr; }
|
||||
const UniformInfo* getUniformInfo(BuiltinUniform builtin) const override { return nullptr; }
|
||||
|
||||
// Not needed right now, since the logic that links the values of the uniforms to the shader is done in cmdPushDescriptorSets
|
||||
// which gets called from the vulkan::Graphics class whenever a draw call happens.
|
||||
// I'll have to reevaluate the use of this function in the future though.
|
||||
void updateUniform(const UniformInfo* info, int count) override {}
|
||||
|
||||
void sendTextures(const UniformInfo* info, graphics::Texture** textures, int count) override {}
|
||||
@@ -90,10 +93,6 @@ private:
|
||||
std::vector<uint8> localUniformStagingData;
|
||||
size_t builtinUniformDataOffset;
|
||||
|
||||
graphics::Texture* ytexture;
|
||||
graphics::Texture* cbtexture;
|
||||
graphics::Texture* crtexture;
|
||||
|
||||
uint32_t currentFrame;
|
||||
// todo: give this variable a better name
|
||||
uint32_t count;
|
||||
|
||||
Reference in New Issue
Block a user