SPIRV-Cross/shaders/vulkan/rchit/primitive_id.nocompat.vk.rchit
2020-05-20 14:11:28 +02:00

10 lines
147 B
GLSL

#version 460
#extension GL_NV_ray_tracing : require
layout(location = 0) rayPayloadInNV uint payload;
void main()
{
payload = gl_PrimitiveID;
}