mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
374c124025
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
15 lines
300 B
Plaintext
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);
|
|
} |