mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 10:24:58 +01:00
Optimise raytracing and buffer building
This commit is contained in:
@@ -722,13 +722,14 @@ bool vulkan14_renderer::init_scene(std::string &Reason)
|
||||
auto const cullface{draw.cullface};
|
||||
draw.cullface = false;
|
||||
apply_draw_state();
|
||||
if (draw.set_dirty)
|
||||
{
|
||||
bind_pass_set();
|
||||
}
|
||||
auto const block{push_draw_block()};
|
||||
if (block != ~0u)
|
||||
{
|
||||
// after the block, which may have opened a new window of the blocks the pass set is bound with
|
||||
if (draw.set_dirty)
|
||||
{
|
||||
bind_pass_set();
|
||||
}
|
||||
if (draw.textures_dirty)
|
||||
{
|
||||
push_textures();
|
||||
|
||||
Reference in New Issue
Block a user