Skip to content

Commit 1243554

Browse files
Merge pull request #86 from Devsh-Graphics-Programming/core_bugfixes
Core bugfixes
2 parents c6a7cc9 + 746869b commit 1243554

File tree

6 files changed

+188
-142
lines changed

6 files changed

+188
-142
lines changed

examples_tests/39.DenoiserTonemapper/CommonPushConstants.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#endif
1010
struct CommonPushConstants
1111
{
12-
uint inImageTexelOffset[3];
1312
uint inImageTexelPitch[3];
14-
uint outImageOffset[3];
1513
uint imageWidth;
1614

1715

examples_tests/39.DenoiserTonemapper/ShaderCommon.glsl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ layout(local_size_x=COMPUTE_WG_SIZE) in;
88
layout(constant_id = 1) const uint EII_COLOR = 0u;
99
layout(constant_id = 2) const uint EII_ALBEDO = 1u;
1010
layout(constant_id = 3) const uint EII_NORMAL = 2u;
11+
layout(constant_id = 4) const uint EII_COUNT = 3u;
1112

1213
#include "./CommonPushConstants.h"
1314

@@ -18,10 +19,12 @@ layout(push_constant, row_major) uniform PushConstants{
1819

1920

2021
#define SHARED_CHANNELS 3
21-
// the amount of memory needed for luma metering is bigger than interleaving
22-
#define _NBL_GLSL_SCRATCH_SHARED_SIZE_DEFINED_ ((COMPUTE_WG_SIZE+1)*8)
23-
shared uint repackBuffer[_NBL_GLSL_SCRATCH_SHARED_SIZE_DEFINED_];
24-
#define _NBL_GLSL_SCRATCH_SHARED_DEFINED_ repackBuffer
22+
struct f16vec3_packed
23+
{
24+
float16_t x;
25+
float16_t y;
26+
float16_t z;
27+
};
2528

2629

2730
// luma metering stuff

0 commit comments

Comments
 (0)