Crate core_compute

Source

Macros§

compute
compute macro is used to start your computing compute!(compute_kernel , &mut info , …)
compute_ext
if you want to do have customized config for wgpu create compute_config and pass it as first arg to this macro

Structs§

compute_config
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
compute_kernel
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 .
info
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