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
This commit is contained in:
15
Test/rayQuery-OpConvertUToAccelerationStructureKHR.comp
Normal file
15
Test/rayQuery-OpConvertUToAccelerationStructureKHR.comp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user