blob: 2a9d32ffa5966e410420de4e846e8bc5e84c30a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// acceleration-structure-in-compute.slang
// Test for using ray-tracing acceleration structures as a shader input
// in non-ray-tracing shader code (that never actually traces rays)
//TEST:CROSS_COMPILE:-target spirv-asm -stage compute -profile glsl_460+GL_NV_ray_tracing -entry main -DUSE_NV_EXT=1
uniform RaytracingAccelerationStructure gScene;
int helper(RaytracingAccelerationStructure a, int b)
{
return b;
}
[shader("compute")]
void main(
uniform RaytracingAccelerationStructure x)
{
helper(x, 1);
}
|