bevy/crates/bevy_pbr/src
Patrick Walton 3af0b29809
Make #[bindless] in ExtendedMaterial actually enable bindless mode. (#16818)
I forgot to set `BINDLESS_SLOT_COUNT` in `ExtendedMaterial`'s
implementation of `AsBindGroup`, so it didn't actually become bindless.
In fact, it would usually crash with a shader/bind group layout
mismatch, because some parts of Bevy's renderer thought that the
resulting material was bindless while other parts didn't. This commit
corrects the situation.

I had to make `BINDLESS_SLOT_COUNT` a function instead of a constant
because the `ExtendedMaterial` version needs some logic. Unfortunately,
trait methods can't be `const fn`s, so it has to be a runtime function.
2024-12-15 19:18:58 +00:00
..
cluster Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
deferred Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00
light ✏️ Fix typos across bevy (#16702) 2024-12-08 01:18:39 +00:00
light_probe Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
lightmap Don't reëxport bevy_image from bevy_render (#16163) 2024-11-10 06:54:38 +00:00
meshlet Update hashbrown to 0.15 (#15801) 2024-12-10 19:45:50 +00:00
prepass Update the prepass shaders and fix the batching logic for bindless and multidraw. (#16755) 2024-12-12 04:24:56 +00:00
render Make indirect drawing opt-out instead of opt-in, enabling multidraw by default. (#16757) 2024-12-13 06:16:57 +00:00
ssao Move required components doc to type doc (#16575) 2024-12-03 19:45:20 +00:00
ssr Cluster light probes using conservative spherical bounds. (#13746) 2024-12-05 13:07:10 +00:00
volumetric_fog Fix error in volumetric fog shader (#16677) 2024-12-06 08:49:18 +00:00
bundle.rs Type safe retained render world (#15756) 2024-10-10 18:47:04 +00:00
extended_material.rs Make #[bindless] in ExtendedMaterial actually enable bindless mode. (#16818) 2024-12-15 19:18:58 +00:00
fog.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00
lib.rs Retain RenderMeshInstance and MeshInputUniform data from frame to frame. (#16385) 2024-12-05 21:16:04 +00:00
material_bind_groups.rs Make #[bindless] in ExtendedMaterial actually enable bindless mode. (#16818) 2024-12-15 19:18:58 +00:00
material.rs Update the prepass shaders and fix the batching logic for bindless and multidraw. (#16755) 2024-12-12 04:24:56 +00:00
mesh_material.rs Revert default mesh materials (#15930) 2024-10-15 19:47:40 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Make StandardMaterial bindless. (#16644) 2024-12-10 17:48:56 +00:00
wireframe.rs Revert "Have EntityCommands methods consume self for easier chaining" (#15523) 2024-10-02 12:47:26 +00:00