Skip to content
Snippets Groups Projects
Verified Commit bcca2c48 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Shadow denoiser shaders compile but still need assembly

parent b788cc45
No related branches found
No related tags found
1 merge request!114Draft: Resolve "Denoising Module"
Subproject commit d7dfecbabe7b9523b14e7b067216e06b86e8d189 Subproject commit a95e739fd27f2ba17dfe83dc1cf4bd3c786cb82c
...@@ -52,8 +52,8 @@ void main(int2 group_thread_id : SV_GroupThreadID, ...@@ -52,8 +52,8 @@ void main(int2 group_thread_id : SV_GroupThreadID,
const uint stepsize = 0; const uint stepsize = 0;
FFX_DNSR_Shadows_FilterSoftShadowsPass( FFX_DNSR_Shadows_FilterSoftShadowsPass(
group_thread_id, uint2(group_index, group_id),
group_id, uint2(group_thread_id),
did, did,
bWriteResults, bWriteResults,
pass, pass,
......
...@@ -39,6 +39,38 @@ float FFX_DNSR_Shadows_ReadPreviousDepth(int2 idx) { ...@@ -39,6 +39,38 @@ float FFX_DNSR_Shadows_ReadPreviousDepth(int2 idx) {
return 0; // TODO: access image or buffer? return 0; // TODO: access image or buffer?
} }
void FFX_DNSR_Shadows_WriteMetadata(uint id, uint mask) {
// TODO: access image or buffer?
}
void FFX_DNSR_Shadows_WriteReprojectionResults(uint2 did, float2 results) {
// TODO: access image or buffer? (results = mean, variance)
}
void FFX_DNSR_Shadows_WriteMoments(uint2 did, float3 moments) {
// TODO: access image or buffer? (results = mean, variance, temporal sample count)
}
bool FFX_DNSR_Shadows_IsShadowReciever(uint2 did) {
return false; // TODO: access image or buffer?
}
float FFX_DNSR_Shadows_ReadDepth(uint2 did) {
return 0.0f; // TODO: access image or buffer?
}
float3 FFX_DNSR_Shadows_ReadPreviousMomentsBuffer(int2 pos) {
return float3(0.0f); // TODO: access image or buffer?
}
float FFX_DNSR_Shadows_ReadHistory(float2 uv) {
return 0.0f; // TODO: access image or buffer?
}
bool FFX_DNSR_Shadows_IsFirstFrame() {
return false; // TODO: do not guess?
}
#include "ffx_denoiser_shadows_tileclassification.h" #include "ffx_denoiser_shadows_tileclassification.h"
[numthreads(8, 8, 1)] [numthreads(8, 8, 1)]
...@@ -47,5 +79,5 @@ void main(int2 group_thread_id : SV_GroupThreadID, ...@@ -47,5 +79,5 @@ void main(int2 group_thread_id : SV_GroupThreadID,
uint group_id : SV_GroupID) { uint group_id : SV_GroupID) {
// TODO: remapping ids to optimization? // TODO: remapping ids to optimization?
FFX_DNSR_Shadows_TileClassification(group_thread_id, group_id); FFX_DNSR_Shadows_TileClassification(group_index, uint2(group_id, 0));
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "shadowDenoiser_filter.hlsl.hxx" #include "shadowDenoiser_filter.hlsl.hxx"
#include "shadowDenoiser_prepare.hlsl.hxx" #include "shadowDenoiser_prepare.hlsl.hxx"
#include "shadowDenoiser_tileclassification.hlsl.hxx" #include "shadowDenoiser_tileClassification.hlsl.hxx"
namespace vkcv::denoising { namespace vkcv::denoising {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment