Skip to content
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

vk: refactor utils into its own namespace #8280

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

poweifeng
Copy link
Contributor

We move the code that was contained within two "utils" files into separate utils sources in the vulkan/utils directory.

We move the code that was contained within two "utils" files
into separate utils sources in the vulkan/utils directory.
@poweifeng poweifeng added the internal Issue/PR does not affect clients label Nov 18, 2024
filament/backend/src/vulkan/utils/Spirv.cpp Outdated Show resolved Hide resolved

namespace filament::backend {
namespace filament::backend::fvkutils {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why didn't you use utils? is it because it becomes ambiguous with filament::utils?
why the f? what about just vkutils?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fvk stands for "Filament Vulkan". I already use FVK_ for various constants to distinguish it from VK_ constants in the vk API. I also didn't want to introduce a filament::backend::utils since that seems like something that's something shared across backends.

filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
filament/backend/src/vulkan/utils/CappedArray.h Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants