mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
Constify
This commit is contained in:
parent
ec4565263d
commit
9ecfecb83e
|
|
@ -122,8 +122,8 @@ namespace vk
|
|||
|
||||
if (options.sync_region)
|
||||
{
|
||||
u64 sync_end = options.sync_region.offset + options.sync_region.length;
|
||||
u64 write_end = region.bufferOffset + packed16_length;
|
||||
const u64 sync_end = options.sync_region.offset + options.sync_region.length;
|
||||
const u64 write_end = region.bufferOffset + packed16_length;
|
||||
const u64 sync_offset = std::min<u64>(region.bufferOffset, options.sync_region.offset);
|
||||
const u64 sync_length = std::max<u64>(sync_end, write_end) - sync_offset;
|
||||
|
||||
|
|
@ -202,8 +202,8 @@ namespace vk
|
|||
|
||||
if (options.sync_region)
|
||||
{
|
||||
u64 sync_end = options.sync_region.offset + options.sync_region.length;
|
||||
u64 write_end = region.bufferOffset + packed_length;
|
||||
const u64 sync_end = options.sync_region.offset + options.sync_region.length;
|
||||
const u64 write_end = region.bufferOffset + packed_length;
|
||||
const u64 sync_offset = std::min<u64>(region.bufferOffset, options.sync_region.offset);
|
||||
const u64 sync_length = std::max<u64>(sync_end, write_end) - sync_offset;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue