glslang/Test/rayQuery-OpConvertUToAccelerationStructureKHR.comp
Thomas Aven 374c124025 Make GL_KHR_ray_query provide EOpConstructAccStruct
Previously, GL_KHR_ray_tracing was a required extension to generate
OpConvertUToAccelerationStructureKHR conversion instructions from uint64
and uvec2. However, both GL_KHR_ray_tracing and GL_KHR_ray_query should
provide this construction.

Change-Id: I6564c127fd28d9b527d334958a5adc168f5cdd9a
2022-07-21 11:00:34 +02:00

15 lines
300 B
Plaintext

#version 460
#extension GL_EXT_ray_query : enable
layout(push_constant, std140) uniform params
{
uvec2 tlas;
};
void main()
{
rayQueryEXT rayQuery;
rayQueryInitializeEXT(rayQuery, accelerationStructureEXT(tlas), 0, 0, vec3(0.0), 0.0, vec3(1.0), 1.0);
rayQueryTerminateEXT(rayQuery);
}