-
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
[Depends on #8332] Integrate fgviewer
to the engine side
#8344
Conversation
6b0cfc9
to
ccc4f8a
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.
just use mCameCase for member variable name. Also see
https://github.com/google/filament/blob/main/CODE_STYLE.md
For code style to follow.
other than that, LGTM.
# Conflicts: # libs/fgviewer/include/fgviewer/DebugServer.h # libs/fgviewer/include/fgviewer/FrameGraphInfo.h # libs/fgviewer/src/FrameGraphInfo.cpp
I updated the naming, thanks for the reminder! PTAL. |
# Conflicts: # filament/src/details/Engine.cpp
…8379) * Introduce FrameGraphInfo class * Move the assignment into pimpl * Make ctors explicit * Add ctors to fg info structs * Revert the macro change to align with existing * Address the comments * Remove pimpl and move func def to .cc * Fix * Convert the FrameGraph to FrameGraphInfo * Initialize and update debug server on engine side * Fix compile error * Address the comments * Update * Use camelCase * Use camelCase * Update * Add JsonWriter to convert fginfo to json * Add getStatus api and implement it * Add increment * Implement GET apis * Fix compile error * Update * Use c_str_safe * Add operator== for FrameGraphInfo * Call updateFrameGraph in appropriate locations * Address the comments
This PR should be merged after #8332 is in.
In this PR, I intergrate the fgviewer to the filament engine side, right now the engine will update the framegraph info to the debug server every frame.
FrameGraph::getFrameGraphInfo
method to convert current state tofgviewer::FrameGraphInfo
fgviewer::DebugServer
member to theEngine
class and initialize it as the engine loop startsfgviewer::DebugServer
and unregister it as it gets terminatedRenderer::renderJob
afterFrameGraph
is compiled