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
parent 19ce9d695e
commit a1cbcee7ab
No known key found for this signature in database
GPG key ID: 2177ADED8AC966AF

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