bevy/crates/bevy_render/src/render_resource
François Mockers 3945a6de3b
Fix wesl in wasm and webgl2 (#18591)
# Objective

- feature `shader_format_wesl` doesn't compile in Wasm
- once fixed, example `shader_material_wesl` doesn't work in WebGL2

## Solution

- remove special path handling when loading shaders. this seems like a
way to escape the asset folder which we don't want to allow, and can't
compile on android or wasm, and can't work on iOS (filesystem is rooted
there)
- pad material so that it's 16 bits. I couldn't get conditional
compilation to work in wesl for type declaration, it fails to parse
- the shader renders the color `(0.0, 0.0, 0.0, 0.0)` when it's not a
polka dot. this renders as black on WebGPU/metal/..., and white on
WebGL2. change it to `(0.0, 0.0, 0.0, 1.0)` so that it's black
everywhere
2025-03-28 21:45:02 +00:00
..
batched_uniform_buffer.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bind_group_entries.rs Move all_tuples to a new crate (#16161) 2024-12-03 17:41:09 +00:00
bind_group_layout_entries.rs Procedural atmospheric scattering (#16314) 2025-01-23 22:52:46 +00:00
bind_group_layout.rs Upgrade to wgpu v24 (#17542) 2025-02-09 19:40:53 +00:00
bind_group.rs Reimplement bindless storage buffers. (#17994) 2025-03-10 21:32:19 +00:00
bindless.rs Reimplement bindless storage buffers. (#17994) 2025-03-10 21:32:19 +00:00
buffer_vec.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
buffer.rs Upgrade to wgpu v24 (#17542) 2025-02-09 19:40:53 +00:00
gpu_array_buffer.rs Update render_resource gpu buffer doc comments (#17118) 2025-01-28 05:13:04 +00:00
mod.rs Use global binding arrays for bindless resources. (#17898) 2025-02-21 05:55:36 +00:00
pipeline_cache.rs Decoupled naga for wgpu testing (#18099) 2025-03-09 21:49:48 +00:00
pipeline_specializer.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
pipeline.rs Upgrade to wgpu v24 (#17542) 2025-02-09 19:40:53 +00:00
resource_macros.rs bevy_render: Apply #![deny(clippy::allow_attributes, clippy::allow_attributes_without_reason)] (#17194) 2025-01-06 23:10:58 +00:00
shader.rs Fix wesl in wasm and webgl2 (#18591) 2025-03-28 21:45:02 +00:00
storage_buffer.rs Update render_resource gpu buffer doc comments (#17118) 2025-01-28 05:13:04 +00:00
texture.rs Upgrade to wgpu v24 (#17542) 2025-02-09 19:40:53 +00:00
uniform_buffer.rs Use target_abi = "sim" instead of ios_simulator feature (#17702) 2025-02-11 23:01:26 +00:00