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

Ex25 CentralLimitBoxBlur update. #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

achalpandeyy
Copy link
Contributor

@achalpandeyy achalpandeyy commented Jul 19, 2022

  • Handle mouse and keyboard events.
    • Remove Q to quit.
    • Mouse wheel to change the blur radius.
      • Detect vertical scroll event.
      • Change blur radius push constant in response.
  • Read test input image, create output image, and create their views.
  • Create relevant resources to do blur.
  • Get rid of validation errors.

@achalpandeyy achalpandeyy changed the title Ex25 CentralLimitBoxBlur update. [WIP] Ex25 CentralLimitBoxBlur update. Jul 19, 2022
Comment on lines +424 to +442
core::smart_refctd_ptr<nbl::ui::IWindowManager> windowManager;
core::smart_refctd_ptr<nbl::ui::IWindow> window;
core::smart_refctd_ptr<CommonAPI::CommonAPIEventCallback> windowCb;
core::smart_refctd_ptr<nbl::video::IAPIConnection> apiConnection;
core::smart_refctd_ptr<nbl::video::ISurface> surface;
core::smart_refctd_ptr<nbl::video::IUtilities> utilities;
core::smart_refctd_ptr<nbl::video::ILogicalDevice> logicalDevice;
video::IPhysicalDevice* physicalDevice;
std::array<video::IGPUQueue*, CommonAPI::InitOutput::MaxQueuesCount> queues;
core::smart_refctd_ptr<nbl::video::ISwapchain> swapchain;
core::smart_refctd_ptr<video::IGPURenderpass> renderpass = nullptr;
std::array<nbl::core::smart_refctd_ptr<video::IGPUFramebuffer>, CommonAPI::InitOutput::MaxSwapChainImageCount> fbos;
std::array<std::array<nbl::core::smart_refctd_ptr<nbl::video::IGPUCommandPool>, CommonAPI::InitOutput::MaxFramesInFlight>, CommonAPI::InitOutput::MaxQueuesCount> commandPools;
core::smart_refctd_ptr<nbl::system::ISystem> system;
core::smart_refctd_ptr<nbl::asset::IAssetManager> assetManager;
video::IGPUObjectFromAssetConverter::SParams cpu2gpuParams;
core::smart_refctd_ptr<nbl::system::ILogger> logger;
core::smart_refctd_ptr<CommonAPI::InputSystem> inputSystem;
video::IGPUObjectFromAssetConverter cpu2gpu;

Choose a reason for hiding this comment

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

do you need all of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most of it yeah, probably not one or two things like utilities and perhaps windowCb. Will remove the excess stuff.

@devshgraphicsprogramming
Copy link
Member

Read test input image, create output image, and create their views.
Create relevant resources to do blur.

Seems you forgot to push some code, the example I see does nothing

@achalpandeyy achalpandeyy marked this pull request as ready for review July 25, 2022 04:28
@achalpandeyy achalpandeyy changed the title [WIP] Ex25 CentralLimitBoxBlur update. Ex25 CentralLimitBoxBlur update. Jul 25, 2022
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.

2 participants