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:
Zephyron 2025-02-02 12:06:07 +10:00 committed by Mike Lothian
parent 0b5a1c07b4
commit 2bce10f740

View File

@ -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;
}