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.
1#define_import_path test_module
3@group(0) @binding(0) var tlas: acceleration_structure;
5const RAY_NO_CULL = 0xFFu;
7fn ray_func() -> RayIntersection {
8 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));
9 var rq: ray_query;
10 rayQueryInitialize(&rq, tlas, ray);
11 rayQueryProceed(&rq);
12 return rayQueryGetCommittedIntersection(&rq);
Contents