-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External Texture implementation for Vulkan #8488
base: main
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
TextureUsage mapToFilamentUsage(unsigned int usage, TextureFormat format) noexcept { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you going to wait for the consolidation of these methods for GL/Vulkan?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #8491
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
|
||
return format; | ||
} | ||
|
||
void getVKFormatAndUsage(const AHardwareBuffer_Desc& desc, VkFormat& format, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that we're passing in a non-reference param at the end, maybe it's a good time to refactor. Would you mind having this return a std::pair<VkFormat, VkImageUsageFlags>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
filament/backend/include/backend/platforms/VulkanPlatformAndroid.h
Outdated
Show resolved
Hide resolved
579983c
to
3b6fe6a
Compare
Add support for the new createTextureExternalImage2R API instead of createTextureExternalImageR. Add the support to import AHardwareBuffer objects into Vulkan in Android.
3b6fe6a
to
a1c30c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm in general. Just need to rebase on top of the utils function on main.
Alway have two lingering questions.
Thanks!
|
||
#include <android/hardware_buffer.h> | ||
|
||
namespace filament::backend::fvkandroid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: why do we need another namespace at all?
Is it to avoid createExternalImage
conflicting?
And why is createExternalImage
UTILS_PUBLIC
?
Add support for the new createTextureExternalImage2R API instead of createTextureExternalImageR.
Add the support to import AHardwareBuffer objects
into Vulkan in Android.