17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 03:29:03 +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

@@ -571,6 +571,15 @@ geometrybank_manager::indirect_source( gfx::geometry_handle const &Geometry, gfx
return bankrecord.first->indirect_source( Geometry, Source );
}
// marks the bank of the chunk as used, as the draws do
void
geometrybank_manager::mark_used( gfx::geometry_handle const &Geometry ) {
if( false == valid( Geometry ) ) { return; }
bank( Geometry ).second = m_garbagecollector.timestamp();
}
// draws geometry stored in specified chunk with the command at Offset in the bound draw indirect buffer
void
geometrybank_manager::draw_indirect( gfx::geometry_handle const &Geometry, std::intptr_t const Offset, unsigned int const Streams ) {