17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 12:00:30 +01:00

Walk the shadow passes and the culled model groups on worker threads in the Vulkan renderer

This commit is contained in:
2026-10-27 20:56:11 +01:00
parent c44b243698
commit 1447dcf075
55 changed files with 4114 additions and 427 deletions

View File

@@ -82,6 +82,11 @@ struct texture_source : public ITexture {
// the object of the renderer goes, with the bank of the textures
virtual void
destroy() = 0;
// another thread of the renderer works on the texture (makes its object from the data, which it reads too): what it holds isn't for
// the other threads to read until it's done
virtual bool
busy() const {
return false; }
// members
bool has_alpha{ false }; // indicates the texture has alpha channel