Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1enable wgpu_ray_query;
3#define_import_path test_module
5@group(0) @binding(0) var tlas: acceleration_structure;
7const RAY_NO_CULL = 0xFFu;
9fn ray_func() -> RayIntersection {
10 let ray = RayDesc(0u, RAY_NO_CULL, 0.0001, 100000.0, vec3<f32>(0.0, 0.0, 0.0), vec3<f32>(1.0, 0.0, 0.0));
11 var rq: ray_query;
12 rayQueryInitialize(&rq, tlas, ray);
13 rayQueryProceed(&rq);
14 return rayQueryGetCommittedIntersection(&rq);
Contents