mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-16 07:45:33 +00:00
Merge pull request #3515 from ReinUsesLisp/vertex-vk-assert
vk_rasterizer: Fix vertex range assert
This commit is contained in:
commit
b16c8e0e8d
|
@ -1151,7 +1151,7 @@ std::size_t RasterizerVulkan::CalculateVertexArraysSize() const {
|
||||||
// This implementation assumes that all attributes are used in the shader.
|
// This implementation assumes that all attributes are used in the shader.
|
||||||
const GPUVAddr start{regs.vertex_array[index].StartAddress()};
|
const GPUVAddr start{regs.vertex_array[index].StartAddress()};
|
||||||
const GPUVAddr end{regs.vertex_array_limit[index].LimitAddress()};
|
const GPUVAddr end{regs.vertex_array_limit[index].LimitAddress()};
|
||||||
DEBUG_ASSERT(end > start);
|
DEBUG_ASSERT(end >= start);
|
||||||
|
|
||||||
size += (end - start + 1) * regs.vertex_array[index].enable;
|
size += (end - start + 1) * regs.vertex_array[index].enable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue