when you use compute! macro to start
your computing , the default compute_config will
be generated . but for customizing it you can
create your own compute_config and pass it directly to
compute_ext! macro as its first arg . _entry_point is set to main by default
change that to use another function for entry point of your kernel program
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