Skip to content

Commit 5947dd0

Browse files
@Crisspl we still dont survive roundtrip in RGB19E7
1 parent 3553de6 commit 5947dd0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples_tests/22.RaytracedAO/raytraceCommon.glsl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,17 @@ layout(set = 1, binding = 5, std430, row_major) restrict readonly buffer LightRa
142142

143143
#include <nbl/builtin/glsl/format/decode.glsl>
144144
#include <nbl/builtin/glsl/format/encode.glsl>
145+
//! @Crisspl we still dont survive roundtrip in RGB19E7
145146
vec3 fetchAccumulation(in ivec2 coord)
146147
{
147148
const uvec2 data = imageLoad(accumulation,coord).rg;
148-
return nbl_glsl_decodeRGB19E7(data);
149+
return vec4(unpackHalf2x16(data[0]),unpackHalf2x16(data[1])).rgb;
150+
//return nbl_glsl_decodeRGB19E7(data);
149151
}
150-
151152
void storeAccumulation(in vec3 color, in ivec2 coord)
152153
{
153-
const uvec2 data = nbl_glsl_encodeRGB19E7(color);
154+
//const uvec2 data = nbl_glsl_encodeRGB19E7(color);
155+
const uvec2 data = uvec2(packHalf2x16(color.rg),packHalf2x16(vec2(color.b,1.0)));
154156
imageStore(accumulation,coord,uvec4(data,0u,0u));
155157
}
156158

0 commit comments

Comments
 (0)