-
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
…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
| for (uint32_t virtualThreadBase = glsl::gl_WorkGroupID().x * WorkgroupSize; virtualThreadBase < 1920*1080; virtualThreadBase += glsl::gl_NumWorkGroups().x * WorkgroupSize) // not sure why 1280*720 doesn't cover draw surface | ||
| { | ||
| virtualThreadIndex = virtualThreadBase + glsl::gl_LocalInvocationIndex().x; | ||
| const int32_t2 coords = (int32_t2)math::Morton<uint32_t>::decode2d(virtualThreadIndex); |
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.
you must have a bug here, check whether the image you store to is 720p and not 1080p, you should be querying the size from the image.
my hunch here is that you've messed up the math::Morton<uint32_t>::decode2d and you're computing the same pixel multiple times
btw you can use Morton only locally within a workgroup to translate the 64 workgroup invocations int a 8,8 offset.
@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