File tree 1 file changed +1
-5
lines changed 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ can be found with their definitions.
21
21
A [ ` Blas ` ] can be created with [ ` Device::create_blas ` ] .
22
22
A [ ` Tlas ` ] can be created with [ ` Device::create_tlas ` ] .
23
23
24
- Unless one is planning on using the unsafe building API (not recommended for beginners) a [ ` Tlas ` ] should be put inside
25
- a [ ` TlasPackage ` ] . After that a reference to the [ ` Tlas ` ] can be retrieved by calling [ ` TlasPackage::tlas ` ] .
26
- This reference can be placed in a bind group to be used in a shader. A reference to a [ ` Blas ` ] can
24
+ The [ ` Tlas ` ] reference can be placed in a bind group to be used in a shader. A reference to a [ ` Blas ` ] can
27
25
be used to create [ ` TlasInstance ` ] alongside a transformation matrix, a custom index
28
26
(this can be any data that should be given to the shader on a hit) which only the first 24
29
27
bits may be set, and a mask to filter hits in the shader.
@@ -39,8 +37,6 @@ Before a [`Tlas`] is used in a shader it must
39
37
[ `Tlas` ] : https://wgpu.rs/doc/wgpu/struct.Tlas.html
40
38
[ `Blas` ] : https://wgpu.rs/doc/wgpu/struct.Blas.html
41
39
[ `TlasInstance` ] : https://wgpu.rs/doc/wgpu/struct.TlasInstance.html
42
- [ `TlasPackage` ] : https://wgpu.rs/doc/wgpu/struct.TlasPackage.html
43
- [ `TlasPackage::tlas` ] : https://wgpu.rs/doc/wgpu/struct.TlasPackage.html#method.tlas
44
40
45
41
## ` naga ` 's raytracing API:
46
42
You can’t perform that action at this time.
0 commit comments