-
Notifications
You must be signed in to change notification settings - Fork 15
Hlsl path tracer #224
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
base: master
Are you sure you want to change the base?
Hlsl path tracer #224
Conversation
| NBL_CONSTEXPR uint32_t MAX_DEPTH_LOG2 = 4; | ||
| NBL_CONSTEXPR uint32_t MAX_SAMPLES_LOG2 = 10; |
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.
shared header!
| #ifdef SPHERE_LIGHT | ||
| #define SPHERE_COUNT 9 | ||
| #define TRIANGLE_COUNT 0 | ||
| #define RECTANGLE_COUNT 0 | ||
| #endif | ||
|
|
||
| #ifdef TRIANGLE_LIGHT | ||
| #define TRIANGLE_COUNT 1 | ||
| #define SPHERE_COUNT 8 | ||
| #define RECTANGLE_COUNT 0 | ||
| #endif | ||
|
|
||
| #ifdef RECTANGLE_LIGHT | ||
| #define RECTANGLE_COUNT 1 | ||
| #define SPHERE_COUNT 8 | ||
| #define TRIANGLE_COUNT 0 | ||
| #endif | ||
|
|
||
| #define LIGHT_COUNT 1 | ||
| #define BXDF_COUNT 7 |
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.
want this baked in STATIC_INLINE_CONSTEXPR in 3 different scenes
| constexpr static inline uint32_t2 WindowDimensions = { 1280, 720 }; | ||
| constexpr static inline uint32_t MaxFramesInFlight = 5; | ||
| constexpr static inline clock_t::duration DisplayImageDuration = std::chrono::milliseconds(900); | ||
| constexpr static inline uint32_t DefaultWorkGroupSize = 512u; | ||
| constexpr static inline uint32_t MaxDescriptorCount = 256u; | ||
| constexpr static inline uint32_t MaxDepthLog2 = 4u; // 5 | ||
| constexpr static inline uint32_t MaxSamplesLog2 = 10u; // 18 | ||
| constexpr static inline uint32_t MaxBufferDimensions = 3u << MaxDepthLog2; | ||
| constexpr static inline uint32_t MaxBufferSamples = 1u << MaxSamplesLog2; | ||
| constexpr static inline uint8_t MaxUITextureCount = 1u; |
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.
lot of this stuff should be in shared header between HLSL and C++
…htracer doesn't need create params
…params into render_common
# Conflicts: # 31_HLSLPathTracer/app_resources/hlsl/common.hlsl # 31_HLSLPathTracer/app_resources/hlsl/render.comp.hlsl # 31_HLSLPathTracer/app_resources/hlsl/render_common.hlsl # 31_HLSLPathTracer/app_resources/hlsl/render_rwmc_common.hlsl # 31_HLSLPathTracer/app_resources/hlsl/scene.hlsl # 31_HLSLPathTracer/main.cpp
…xis scaling for triangle and rectangle
…lights # Conflicts: # 31_HLSLPathTracer/app_resources/hlsl/render.comp.hlsl # 31_HLSLPathTracer/app_resources/hlsl/scene.hlsl # 31_HLSLPathTracer/main.cpp
@keptsecret after you merge
masteragain, you'll probably have the UI mess up and show changed from the merge commit, so close and reopen again