hot-fix: apply vgt index offset to draw commands

This commit is contained in:
psucien 2024-11-29 14:17:53 +01:00
parent 57a3c0132d
commit d6d1ec4f22
3 changed files with 8 additions and 5 deletions

View file

@ -200,7 +200,7 @@ void Rasterizer::Draw(bool is_indexed, u32 index_offset) {
BeginRendering(*pipeline, state);
UpdateDynamicState(*pipeline);
const auto [vertex_offset, instance_offset] = vs_info.GetDrawOffsets();
const auto [vertex_offset, instance_offset] = vs_info.GetDrawOffsets(regs);
const auto cmdbuf = scheduler.CommandBuffer();
cmdbuf.bindPipeline(vk::PipelineBindPoint::eGraphics, pipeline->Handle());