early-access version 1871
This commit is contained in:
parent
f8a45c1e72
commit
9b2ef88b7d
3 changed files with 12 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 1870.
|
This is the source code for early-access 1871.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,16 @@ void BufferCacheRuntime::BindIndexBuffer(PrimitiveTopology topology, IndexFormat
|
||||||
}
|
}
|
||||||
|
|
||||||
void BufferCacheRuntime::BindQuadArrayIndexBuffer(u32 first, u32 count) {
|
void BufferCacheRuntime::BindQuadArrayIndexBuffer(u32 first, u32 count) {
|
||||||
ReserveQuadArrayLUT(first + count, true);
|
const u32 total_indices = first + count;
|
||||||
|
if (total_indices == 0) {
|
||||||
|
ReserveNullIndexBuffer();
|
||||||
|
scheduler.Record([buffer = *null_index_buffer,
|
||||||
|
index_type = quad_array_lut_index_type](vk::CommandBuffer cmdbuf) {
|
||||||
|
cmdbuf.BindIndexBuffer(buffer, 0, index_type);
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ReserveQuadArrayLUT(total_indices, true);
|
||||||
|
|
||||||
// The LUT has the indices 0, 1, 2, and 3 copied as an array
|
// The LUT has the indices 0, 1, 2, and 3 copied as an array
|
||||||
// To apply these 'first' offsets we can apply an offset based on the modulus.
|
// To apply these 'first' offsets we can apply an offset based on the modulus.
|
||||||
|
|
Loading…
Reference in a new issue