mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-02-12 11:36:26 +01:00
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
1 changed files with 5 additions and 5 deletions
|
@ -200,8 +200,8 @@ public:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsValidMapping(size_t offset, size_t size) const {
|
bool IsValidMapping(size_t offset, size_t length) const {
|
||||||
return (offset + size) <= backing_size;
|
return (offset + length) <= backing_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsDirectMappingEnabled() const {
|
bool IsDirectMappingEnabled() const {
|
||||||
|
@ -611,8 +611,8 @@ public:
|
||||||
virtual_base = nullptr;
|
virtual_base = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsValidMapping(size_t offset, size_t size) const {
|
bool IsValidMapping(size_t offset, size_t length) const {
|
||||||
return (offset + size) <= backing_size;
|
return (offset + length) <= backing_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsDirectMappingEnabled() const {
|
bool IsDirectMappingEnabled() const {
|
||||||
|
@ -692,7 +692,7 @@ public:
|
||||||
|
|
||||||
void EnableDirectMappedAddress() {}
|
void EnableDirectMappedAddress() {}
|
||||||
|
|
||||||
bool IsValidMapping(size_t offset, size_t size) const {
|
bool IsValidMapping(size_t offset, size_t length) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue