mirror of https://git.citron-emu.org/citron/emu
vulkan: Fix parameter naming consistency for Android compilation
Renames 'size' parameter to 'length' in IsValidMapping() methods to avoid conflicts with Android NDK macros that define 'size'. This fixes compilation issues on Android platforms where the 'size' macro is defined.
This commit is contained in:
parent
19ce9d695e
commit
a1cbcee7ab
|
@ -200,8 +200,8 @@ public:
|
|||
UNREACHABLE();
|
||||
}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
return (offset + size) <= backing_size;
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return (offset + length) <= backing_size;
|
||||
}
|
||||
|
||||
bool IsDirectMappingEnabled() const {
|
||||
|
@ -611,8 +611,8 @@ public:
|
|||
virtual_base = nullptr;
|
||||
}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
return (offset + size) <= backing_size;
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return (offset + length) <= backing_size;
|
||||
}
|
||||
|
||||
bool IsDirectMappingEnabled() const {
|
||||
|
@ -692,7 +692,7 @@ public:
|
|||
|
||||
void EnableDirectMappedAddress() {}
|
||||
|
||||
bool IsValidMapping(size_t offset, size_t size) const {
|
||||
bool IsValidMapping(size_t offset, size_t length) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue