bevy/crates/bevy_render/macros/src
Patrick Walton 7ed1f327d9
Make StandardMaterial bindless. (#16644)
This commit makes `StandardMaterial` use bindless textures, as
implemented in PR #16368. Non-bindless mode, as used for example in
Metal and WebGL 2, remains fully supported via a plethora of `#ifdef
BINDLESS` preprocessor definitions.

Unfortunately, this PR introduces quite a bit of unsightliness into the
PBR shaders. This is a result of the fact that WGSL supports neither
passing binding arrays to functions nor passing individual *elements* of
binding arrays to functions, except directly to texture sample
functions. Thus we're unable to use the `sample_texture` abstraction
that helped abstract over the meshlet and non-meshlet paths. I don't
think there's anything we can do to help this other than to suggest
improvements to upstream Naga.
2024-12-10 17:48:56 +00:00
..
as_bind_group.rs Make StandardMaterial bindless. (#16644) 2024-12-10 17:48:56 +00:00
extract_component.rs
extract_resource.rs
lib.rs Add a bindless mode to AsBindGroup. (#16368) 2024-12-03 18:00:34 +00:00