Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sheldonfrith/bevy_gpu_compute
/ functions
Functions
428 in github.com/Sheldonfrith/bevy_gpu_compute
⨍
Functions
428
◇
Types & classes
128
↓ 60 callers
Method
push
Using "array_set" is generally more performant, use this only if you can't determine beforehand the number of outputs you will be producing. Using thi
bevy_gpu_compute_core/src/wgsl/user_facing_api/helpers/output.rs:10
↓ 30 callers
Method
insert
(&mut self, key: K, value: V)
bevy_gpu_compute/src/task/compute_pipeline/lru_cache.rs:27
↓ 20 callers
Function
transform_wgsl_helper_methods
Rust's normal type checking will ensure that these helper functions are using correctly defined types
bevy_gpu_compute_macro/src/pipeline/phases/wgsl_helper_transformer/run.rs:18
↓ 16 callers
Method
configuration
(&self)
bevy_gpu_compute/src/task/lib.rs:46
↓ 16 callers
Method
get
(&self)
bevy_gpu_compute_core/src/wgsl/user_facing_api/primitives/pod_f16.rs:23
↓ 14 callers
Method
push_str_w_newline
(&mut self, s: &str)
bevy_gpu_compute_core/src/wgsl/shader_module/complete_shader_module.rs:87
↓ 13 callers
Method
outputs
(&self)
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:49
↓ 12 callers
Method
arrays
(&self)
bevy_gpu_compute/src/task/task_components/configuration/input_spec.rs:14
↓ 12 callers
Method
get
(&mut self, key: &K)
bevy_gpu_compute/src/task/compute_pipeline/lru_cache.rs:18
↓ 12 callers
Method
len
returns the number of times this vector has been pushed to. (Or, for the power-user, the value of the atomic counter)
bevy_gpu_compute_core/src/wgsl/user_facing_api/helpers/output.rs:21
↓ 10 callers
Method
name
getters
bevy_gpu_compute/src/task/lib.rs:43
↓ 10 callers
Method
name
(&self)
bevy_gpu_compute_core/src/wgsl/shader_custom_type_name.rs:31
↓ 9 callers
Method
output_array
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:42
↓ 8 callers
Method
buffers
(&self)
bevy_gpu_compute/src/task/lib.rs:56
↓ 8 callers
Method
runtime_state
(&self)
bevy_gpu_compute/src/task/lib.rs:50
↓ 7 callers
Method
custom_types
(&self)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:46
↓ 7 callers
Method
inputs
(&self)
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:45
↓ 7 callers
Method
original_rust_module
(&self)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:52
↓ 6 callers
Method
current_data
(&self)
bevy_gpu_compute/src/task/lib.rs:62
↓ 6 callers
Method
input_array
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:35
↓ 5 callers
Method
buffers_mut
(&mut self)
bevy_gpu_compute/src/task/lib.rs:59
↓ 5 callers
Method
into_wgsl_type
(self, custom_types: &Vec<CustomType>)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type.rs:51
↓ 5 callers
Method
iteration_space
(&self)
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:41
↓ 5 callers
Method
max_lengths
(&self)
bevy_gpu_compute/src/task/task_components/configuration/output_spec.rs:19
↓ 5 callers
Method
output_array_length
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:39
↓ 5 callers
Method
run_commands
Runs all previously queued commands for the task
bevy_gpu_compute/src/system_params/task_runner.rs:50
↓ 5 callers
Method
task
get a GpuTaskCommands object, which is actually a queue of commands to be run. #### You MUST call `run_commands` on the returned object to actually ru
bevy_gpu_compute/src/system_params/task_runner.rs:39
↓ 4 callers
Function
calculate_distance_squared
(p1: [f32; 2], p2: [f32; 2])
bevy_gpu_compute_macro/tests/components.rs:189
↓ 4 callers
Function
convert_file_to_wgsl
called_from is for debug messages
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/to_wgsl_syntax/mod.rs:71
↓ 4 callers
Method
counter
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:46
↓ 4 callers
Method
create_bind_group_layout_entry
( &self, binding_number: u32, is_input: bool, is_uniform: bool, )
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:191
↓ 4 callers
Method
current_data_mut
(&mut self)
bevy_gpu_compute/src/task/lib.rs:65
↓ 4 callers
Method
get_by_name
(&self, output_item_name: &ShaderCustomTypeName)
bevy_gpu_compute_core/src/rust/max_output_lengths.rs:26
↓ 4 callers
Method
run
This queues a run of the task. You still MUST call `GpuTaskRunner::run_commands` for this to take effect.
bevy_gpu_compute/src/task/commands.rs:77
↓ 4 callers
Method
uniform
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:29
↓ 3 callers
Function
array_to_wgsl
(arr: &syn::TypeArray)
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/to_wgsl_syntax/array.rs:23
↓ 3 callers
Method
configs
(&self)
bevy_gpu_compute/src/task/task_components/configuration/input_spec.rs:17
↓ 3 callers
Function
convert_single_constructor
(input: &str)
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/to_wgsl_syntax/wgsl_builtin_constructors.rs:89
↓ 3 callers
Method
entity
(&self)
bevy_gpu_compute/src/task/commands.rs:47
↓ 3 callers
Method
hash
(&self)
bevy_gpu_compute/src/task/task_components/input_lengths.rs:44
↓ 3 callers
Method
input_array_length
(&self)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:32
↓ 3 callers
Method
input_lengths
(&self)
bevy_gpu_compute/src/task/task_components/data.rs:31
↓ 3 callers
Method
mutate
runtime state has to be updated if either iteration space or output array lengths is changed, so more efficient to combine updates into a single metho
bevy_gpu_compute/src/task/lib.rs:126
↓ 3 callers
Method
num_dimmensions
(&self)
bevy_gpu_compute/src/task/task_components/configuration/iteration_space.rs:72
↓ 3 callers
Method
runtime_state_mut
(&mut self)
bevy_gpu_compute/src/task/lib.rs:53
↓ 3 callers
Method
set
(&mut self, output_type_name: &str, length: usize)
bevy_gpu_compute_core/src/rust/max_output_lengths.rs:36
↓ 3 callers
Method
workgroup_space
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:50
↓ 2 callers
Function
convert_wgsl_builtin_constructors
for converting vec and mat types *Vectors are declared with the form vecN<T> , where N is the number of elements in the vector, and T is the element t
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/to_wgsl_syntax/wgsl_builtin_constructors.rs:85
↓ 2 callers
Method
eq
(&self, other: &Ident)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/custom_type_idents.rs:26
↓ 2 callers
Method
get_bytes
(&self, input_name: &str)
bevy_gpu_compute_core/src/rust/type_erased_output_data.rs:16
↓ 2 callers
Function
get_single_input_type_metadata
(binding_num: u32, input_type: &str)
bevy_gpu_compute_macro/src/pipeline/phases/final_structure_generator/types_for_rust_usage.rs:80
↓ 2 callers
Method
input_array
(group_num: u32, entry_num: u32, name: String, type_decl: String)
bevy_gpu_compute_core/src/wgsl/shader_sections/wgpu_binding.rs:46
↓ 2 callers
Method
input_array_length
(&self)
bevy_gpu_compute_core/src/wgsl/shader_custom_type_name.rs:40
↓ 2 callers
Method
output_array
(group_num: u32, entry_num: u32, name: String, type_decl: String)
bevy_gpu_compute_core/src/wgsl/shader_sections/wgpu_binding.rs:56
↓ 2 callers
Method
output_array_length
(&self)
bevy_gpu_compute_core/src/wgsl/shader_custom_type_name.rs:47
↓ 2 callers
Function
parse_possible_wgsl_helper
( call: &'a ExprCall, custom_types: &'a [CustomType], )
bevy_gpu_compute_macro/src/pipeline/phases/wgsl_helper_transformer/parse.rs:44
↓ 2 callers
Method
pipeline_cache_mut
(&mut self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:62
↓ 2 callers
Method
rust_module_for_cpu
(&self)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:37
↓ 2 callers
Method
set_custom_types
(&mut self, custom_types: Vec<CustomType>)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:43
↓ 2 callers
Method
set_inputs
This queues a mutation of the task. You still MUST call `GpuTaskRunner::run_commands` for this to take effect.
bevy_gpu_compute/src/task/commands.rs:58
↓ 2 callers
Method
set_rust_module_for_cpu
(&mut self, rust_module_for_cpu: syn::ItemMod)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:64
↓ 2 callers
Method
shader
(&self)
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:37
↓ 2 callers
Method
uniform
(group_num: u32, entry_num: u32, name: String, type_decl: &str)
bevy_gpu_compute_core/src/wgsl/shader_sections/wgpu_binding.rs:36
↓ 2 callers
Function
update_compute_pipeline
(task: &mut BevyGpuComputeTask, render_device: &RenderDevice)
bevy_gpu_compute/src/task/compute_pipeline/update_on_pipeline_const_change.rs:9
↓ 2 callers
Method
version
(&self)
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:52
↓ 2 callers
Method
wgsl_module_user_portion
(&self)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:73
↓ 2 callers
Method
x
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/gpu_workgroup_space.rs:28
↓ 2 callers
Method
y
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/gpu_workgroup_space.rs:31
↓ 2 callers
Method
z
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/gpu_workgroup_space.rs:34
↓ 1 callers
Method
_internal_set_iteration_space
ensure that the runtime state has been properly updated whenever we change the iteration space
bevy_gpu_compute/src/task/task_components/configuration/lib.rs:61
↓ 1 callers
Method
_internal_set_max_lengths
ensure that runtime state was properly updated whenever you update max lengths
bevy_gpu_compute/src/task/task_components/configuration/output_spec.rs:23
↓ 1 callers
Method
_internal_set_max_output_bytes
(&mut self, new_max_output_bytes: MaxOutputBytes)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:77
↓ 1 callers
Method
_internal_set_workgroup_sizes
(&mut self, new_workgroup_sizes: GpuWorkgroupSizes)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:83
↓ 1 callers
Method
_internal_set_workgroup_space
(&mut self, new_gpu_workgroup_space: GpuWorkgroupSpace)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:80
↓ 1 callers
Function
add_array_lengths_to_main
( wgsl_shader_module_parsed: &WgslShaderModuleUserPortion, main_func: &mut ItemFn, )
bevy_gpu_compute_macro/src/pipeline/phases/module_for_rust_usage_cleaner/alter_main_function_for_cpu_usage.rs:83
↓ 1 callers
Function
add_params_to_main
( wgsl_shader_module_parsed: &WgslShaderModuleUserPortion, main_func: &mut ItemFn, )
bevy_gpu_compute_macro/src/pipeline/phases/module_for_rust_usage_cleaner/alter_main_function_for_cpu_usage.rs:37
↓ 1 callers
Function
alter_global_id_argument
we have to alter the main function argument to match the wgsl spec by string replace instead of ast manipulation because the new argument is not a val
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/main_function.rs:72
↓ 1 callers
Function
alter_main_function_for_cpu_usage
( wgsl_shader_module_parsed: &WgslShaderModuleUserPortion, main_func: &mut ItemFn, )
bevy_gpu_compute_macro/src/pipeline/phases/module_for_rust_usage_cleaner/alter_main_function_for_cpu_usage.rs:29
↓ 1 callers
Method
bind_group
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:65
↓ 1 callers
Method
bind_group_layout
(&self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:71
↓ 1 callers
Method
bind_group_mut
(&mut self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:68
↓ 1 callers
Method
build
(&mut self)
bevy_gpu_compute/src/task/task_components/runtime_state/lib.rs:106
↓ 1 callers
Function
calculate_distance_squared
(p1: Vec2F32, p2: Vec2F32)
bevy_gpu_compute/examples/collision_detection_barebones/main.rs:60
↓ 1 callers
Function
calculate_distance_squared
(p1: Vec2F32, p2: Vec2F32)
bevy_gpu_compute/examples/collision_detection_demonstration/main.rs:85
↓ 1 callers
Function
check_for_iter_pos_assignment
(assign: &ExprAssign)
bevy_gpu_compute_macro/src/pipeline/phases/non_mutating_tree_validation/validate_no_iter_pos_assignments.rs:17
↓ 1 callers
Method
clear_output
(&mut self)
bevy_gpu_compute/src/task/task_components/data.rs:44
↓ 1 callers
Function
collect_custom_types
(original_rust_module: &syn::ItemMod)
bevy_gpu_compute_macro/src/pipeline/phases/custom_type_collector/collect.rs:43
↓ 1 callers
Method
compile
(&self, module: syn::ItemMod)
bevy_gpu_compute_macro/src/pipeline/lib.rs:34
↓ 1 callers
Method
compiled_tokens
(&self)
bevy_gpu_compute_macro/src/pipeline/compilation_unit.rs:58
↓ 1 callers
Method
config_input
(&self)
bevy_gpu_compute/src/task/task_components/data.rs:19
↓ 1 callers
Method
contains_key
(&self, key: &K)
bevy_gpu_compute/src/task/compute_pipeline/lru_cache.rs:44
↓ 1 callers
Function
convert_path_segment
(segment: PathSegment, custom_types: &[CustomType])
bevy_gpu_compute_macro/src/pipeline/phases/gpu_resource_mngmnt_and_wgsl_generator/to_wgsl_syntax/type.rs:24
↓ 1 callers
Function
create_bind_group
Binding the buffers to the corresponding wgsl code. For example, this might be the wgsl code: ```wgsl @group(0) @binding(0) var<storage, read> posit
bevy_gpu_compute/src/task/dispatch/create_bind_group.rs:21
↓ 1 callers
Function
create_circle_outline_components
( radius: f32, outline_color: AvailableColor, color_handles: &Res<ColorHandles>, meshes: &mut
bevy_gpu_compute/examples/collision_detection_barebones/visuals.rs:68
↓ 1 callers
Function
create_circle_outline_components
( radius: f32, outline_color: AvailableColor, color_handles: &Res<ColorHandles>, meshes: &mut
bevy_gpu_compute/examples/collision_detection_demonstration/visuals.rs:68
↓ 1 callers
Function
create_config_input_data_builder
(custom_types: &[CustomType])
bevy_gpu_compute_macro/src/pipeline/phases/typesafe_buffer_builders_generator/config_input_data_builder.rs:12
↓ 1 callers
Function
create_input_data_builder
(custom_types: &[CustomType])
bevy_gpu_compute_macro/src/pipeline/phases/typesafe_buffer_builders_generator/input_data_builder.rs:12
↓ 1 callers
Function
create_max_output_lengths_builder
(custom_types: &[CustomType])
bevy_gpu_compute_macro/src/pipeline/phases/typesafe_buffer_builders_generator/max_output_lengths_builder.rs:10
↓ 1 callers
Function
create_output_data_builder
(custom_types: &[CustomType])
bevy_gpu_compute_macro/src/pipeline/phases/typesafe_buffer_builders_generator/output_data_builder.rs:10
↓ 1 callers
Function
define_types_for_use_in_rust_and_set_binding_numbers
( wgsl_shader_module: &mut WgslShaderModuleUserPortion, )
bevy_gpu_compute_macro/src/pipeline/phases/final_structure_generator/types_for_rust_usage.rs:11
next →
1–100 of 428, ranked by callers