Crate core_compute
source ·Structs§
- for starting your computing mission on gpu first you need to write your kernel code in wgsl (recommended) or any other shader codes which wgpu supports , and then create compute_kernel variable with that code .
- with info struct you pass data to gpu side , for now set bind and group to the same value ! think of it as id of your variable in wgsl side , wgpu uses it to find out where to copy data to in gpu side