Skip to content

Commit

Permalink
Compiler error.
Browse files Browse the repository at this point in the history
.
  • Loading branch information
phoenixxxx committed Dec 5, 2024
1 parent 901b1a2 commit c583941
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions filament/backend/src/vulkan/platform/VulkanPlatformAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ void getVKFormatAndUsage(const AHardwareBuffer_Desc& desc,
}
}

VulkanPlatform::imageData allocateExternalImage(void* externalBuffer, VkDevice device,
const VkAllocationCallbacks* allocator,
filament::backend::VulkanPlatform::imageData allocateExternalImage(void* externalBuffer,
VkDevice device, const VkAllocationCallbacks* allocator,
const VulkanPlatform::ExternalImageMetadata& metadata) {
VulkanPlatform::imageData data;
filament::backend::VulkanPlatform::imageData data;
AHardwareBuffer* buffer = static_cast<AHardwareBuffer*>(externalBuffer);

//if external format we need to specifiy it in the allocation
Expand Down Expand Up @@ -171,9 +171,10 @@ VulkanPlatform::imageData allocateExternalImage(void* externalBuffer, VkDevice d
return data;
}

VulkanPlatform::ExternalImageMetadata VulkanPlatform::getExternalImageMetadataImpl(
void* externalImage, VkDevice device) {
VulkanPlatform::ExternalImageMetadata metadata;
filament::backend::VulkanPlatform::ExternalImageMetadata
VulkanPlatform::getExternalImageMetadataImpl(void* externalImage,
VkDevice device) {
filament::backend::VulkanPlatform::ExternalImageMetadata metadata;
AHardwareBuffer* buffer = static_cast<AHardwareBuffer*>(externalImage);
if (__builtin_available(android 26, *)) {
AHardwareBuffer_Desc buffer_desc;
Expand Down

0 comments on commit c583941

Please sign in to comment.