bluenoise-raytracer/ray_tracing_indirect_scissor/shaders/LanternIndirectEntry.glsl
2020-12-15 09:06:54 +01:00

18 lines
357 B
GLSL

struct LanternIndirectEntry
{
// VkTraceRaysIndirectCommandKHR
int indirectWidth;
int indirectHeight;
int indirectDepth;
// Pixel coordinate of scissor rect upper-left.
int offsetX;
int offsetY;
// Lantern starts here:
// Can't use vec3 due to alignment.
float x, y, z;
float red, green, blue;
float brightness;
float radius;
};