Skip to content

Commit c6ce1a9

Browse files
missing file
1 parent e6a1e82 commit c6ce1a9

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#ifndef _RAYGEN_COMMON_INCLUDED_
2+
#define _RAYGEN_COMMON_INCLUDED_
3+
4+
#include "common.glsl"
5+
#if WORKGROUP_SIZE!=256
6+
#error "Hardcoded 16 should be NBL_SQRT(WORKGROUP_SIZE)"
7+
#endif
8+
layout(local_size_x = 16, local_size_y = 16) in;
9+
10+
//
11+
layout(set = 1, binding = 0, rgba32f) restrict uniform image2D framebuffer;
12+
#include <irr/builtin/glsl/ext/RadeonRays/ray.glsl>
13+
layout(set = 1, binding = 1, std430) restrict writeonly buffer Rays
14+
{
15+
irr_glsl_ext_RadeonRays_ray rays[];
16+
};
17+
// lights
18+
layout(set = 1, binding = 2, std430) restrict readonly buffer CumulativeLightPDF
19+
{
20+
uint lightCDF[];
21+
};
22+
layout(set = 1, binding = 3, std430, row_major) restrict readonly buffer Lights
23+
{
24+
SLight light[];
25+
};
26+
layout(set = 1, binding = 4, std430, row_major) restrict readonly buffer LightRadiances
27+
{
28+
uvec2 lightRadiance[]; // Watts / steriadian / steradian in rgb19e7
29+
};
30+
31+
struct RaygenShaderData_t
32+
{
33+
RaytraceShaderCommonData_t common;
34+
mat4x3 frustumCorners;
35+
mat4x3 normalMatrixAndCameraPos;
36+
vec2 rcpPixelSize;
37+
vec2 rcpHalfPixelSize;
38+
float depthLinearizationConstant;
39+
uint samplesComputedPerPixel;
40+
uint padding[2];
41+
};
42+
43+
struct ResolveShaderData_t
44+
{
45+
RaytraceShaderCommonData_t common;
46+
uint framesDone;
47+
float rcpFramesDone;
48+
uint padding[2];
49+
};
50+
51+
#endif

0 commit comments

Comments
 (0)