Module examples
Source - apply_with_buf
- An example of device.apply_on_vector with a previously created buffer
- complete_pipeline
- An example with a complete pipeline which as you can see, is quite annoying just to multiply a vector by 2.
- global_id
- An Example with a custom dispatch that gives access to the global_id variable.
- multiple_output_buffers
- An example with multiple returned buffer with device.execute_shader_code
- reusing_device
- An example where we execute two shaders on the same device, with the same buffers.
- shader_two_steps
- An example where we create a shader_module and then execute it (in practice it is for reusing the shader_module several times).
- simplest_apply
- The simplest method to use
- with_execute_shader
- The simplest example with device.execute_shader_code : multiplying by 2 every element of a vector.