ddgi update

This commit is contained in:
Turánszki János
2022-01-20 14:29:18 +01:00
parent a4580ea2b0
commit 5cb4baa1ff
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -12,9 +12,6 @@ PUSHCONSTANT(push, DDGIPushConstants);
StructuredBuffer<DDGIRayDataPacked> ddgiRayBuffer : register(t0);
static const uint CACHE_SIZE = 64;
groupshared DDGIRayDataPacked ray_cache[CACHE_SIZE];
static const float WEIGHT_EPSILON = 0.0001;
#ifdef DDGI_UPDATE_DEPTH
@@ -25,6 +22,9 @@ static const uint THREADCOUNT = DDGI_COLOR_RESOLUTION;
RWTexture2D<float3> output : register(u0);
#endif // DDGI_UPDATE_DEPTH
static const uint CACHE_SIZE = THREADCOUNT * THREADCOUNT;
groupshared DDGIRayData ray_cache[CACHE_SIZE];
[numthreads(THREADCOUNT, THREADCOUNT, 1)]
void main(uint3 GTid : SV_GroupThreadID, uint3 Gid : SV_GroupID, uint groupIndex : SV_GroupIndex)
{
@@ -55,14 +55,14 @@ void main(uint3 GTid : SV_GroupThreadID, uint3 Gid : SV_GroupID, uint groupIndex
if (groupIndex < num_rays)
{
ray_cache[groupIndex] = ddgiRayBuffer[probeIndex * DDGI_MAX_RAYCOUNT + groupIndex + offset];
ray_cache[groupIndex] = ddgiRayBuffer[probeIndex * DDGI_MAX_RAYCOUNT + groupIndex + offset].load();
}
GroupMemoryBarrierWithGroupSync();
for (uint r = 0; r < num_rays; ++r)
{
DDGIRayData ray = ray_cache[r].load();
DDGIRayData ray = ray_cache[r];
#ifdef DDGI_UPDATE_DEPTH
float ray_probe_distance;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 60;
// minor bug fixes, alterations, refactors, updates
const int revision = 19;
const int revision = 20;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);