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

add "enable_fxaa" in rendering.global.json to enable/disable fxaa pass #218

Merged
merged 5 commits into from
Jun 14, 2022
Merged

add "enable_fxaa" in rendering.global.json to enable/disable fxaa pass #218

merged 5 commits into from
Jun 14, 2022

Conversation

jiangdunchun
Copy link
Contributor

No description provided.

@hyv1001 hyv1001 requested review from kwbm May 31, 2022 11:46
@@ -192,8 +194,8 @@ namespace Pilot
fxaa_pass.updateAfterFramebufferRecreate(
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_post_process_buffer_odd]);
combine_ui_pass.updateAfterFramebufferRecreate(
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_even],
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_odd]);
main_camera_pass.getFramebufferImageViews()[_main_camera_pass_backup_buffer_odd],
Copy link
Collaborator

Choose a reason for hiding this comment

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

why change the order?

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 _main_camera_pass_backup_buffer_odd VkImageView is used as the scene_input_attachment now no matter enable or disable FXAA pass. and the _main_camera_pass_backup_buffer_even is used as the ui_input_attachment. it doesn't make any difference if not changed the order. for easy understanding, i think the parameter should follow the definition void CombineUIPass::updateAfterFramebufferRecreate(VkImageView scene_input_attachment, VkImageView ui_input_attachment).

@@ -27,6 +27,9 @@ namespace Pilot
{
RenderPass::initialize(nullptr);

const MainCameraPassInitInfo* _init_info = static_cast<const MainCameraPassInitInfo*>(init_info);
Copy link
Collaborator

Choose a reason for hiding this comment

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

local variable naming should be const MainCameraPassInitInfo* init_info

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 init_info has been used in const RenderPassInitInfo* init_info as the parameter of initialize function. i referenced the initialize function of ColorGradingPass which used this naming style.

@jiangdunchun jiangdunchun requested a review from hyv1001 June 6, 2022 05:33
@jiangdunchun
Copy link
Contributor Author

@hyv1001 please check and assess if these changes should be accepted

@hyv1001 hyv1001 merged commit 55c09cf into BoomingTech:main Jun 14, 2022
@jiangdunchun jiangdunchun deleted the fxaa_algorithm branch June 14, 2022 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants