davids91 / shocovox

Sparse Voxel Octree implementation in WGSL ( hence: shady ) with handling and utilities in Rust.
Other
9 stars 1 forks source link

Investigate performance impact of passing by reference in wgsl shaders #8

Closed davids91 closed 5 months ago

davids91 commented 9 months ago

https://www.w3.org/TR/WGSL/#reference-type

https://stackoverflow.com/questions/77925676/impact-of-passing-a-large-array-to-a-wgsl-function

davids91 commented 5 months ago

As most of the data is moved to global buffers, there's no need to pass any data through function arguments, and this issue became obsolete