bevy/crates/bevy_pbr/src/render
ira 6b774c0fda
Compute vertex_count for indexed meshes on GpuMesh (#8460)
# Objective

Compute the `vertex_count` for indexed meshes as well as non-indexed
meshes.

I will need this in a future PR based on #8427 that adds a gizmo
component that draws the normals of a mesh when attached to an entity
([branch](https://github.com/devil-ira/bevy/compare/instanced-line-rendering...devil-ira:bevy:instanced-line-rendering-normals)).

<details><summary>Example image</summary>
<p>


![image](https://user-images.githubusercontent.com/29694403/233789526-cb5feb47-0aa7-4e69-90a2-e31ec24aadff.png)

</p>
</details> 

## Solution

Move `vertex_count` field from `GpuBufferInfo::NonIndexed` to `GpuMesh`

## Migration Guide

`vertex_count` is now stored directly on `GpuMesh` instead of
`GpuBufferInfo::NonIndexed`.
2023-04-22 17:28:58 +00:00
..
clustered_forward.wgsl Wgpu 0.15 (#7356) 2023-01-29 20:27:30 +00:00
fog.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
fog.wgsl Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
light.rs Non-breaking change* from UK spellings to US (#8291) 2023-04-08 16:22:46 +00:00
mesh_bindings.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh_functions.wgsl bevy_pbr: Fix tangent and normal normalization (#5666) 2022-08-18 21:54:40 +00:00
mesh_types.wgsl Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
mesh_vertex_output.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh_view_bindings.wgsl Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
mesh_view_types.wgsl EnvironmentMapLight support for WebGL2 (#7737) 2023-02-20 00:02:40 +00:00
mesh.rs Compute vertex_count for indexed meshes on GpuMesh (#8460) 2023-04-22 17:28:58 +00:00
mesh.wgsl bevy_pbr: Fix incorrect and unnecessary normal-mapping code (#5766) 2022-11-03 20:37:32 +00:00
mod.rs Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
parallax_mapping.wgsl Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
pbr_ambient.wgsl EnvironmentMapLight, BRDF Improvements (#7051) 2023-02-09 16:46:32 +00:00
pbr_bindings.wgsl Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
pbr_functions.wgsl Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
pbr_lighting.wgsl EnvironmentMapLight, BRDF Improvements (#7051) 2023-02-09 16:46:32 +00:00
pbr_prepass.wgsl Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
pbr_types.wgsl Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
pbr.wgsl Fix pbr shader breaking on missing UVs (#8412) 2023-04-17 06:22:34 +00:00
shadows.wgsl Non-breaking change* from UK spellings to US (#8291) 2023-04-08 16:22:46 +00:00
skinning.wgsl bevy_pbr: Normalize skinned normals (#6543) 2022-11-11 03:31:57 +00:00
utils.wgsl Wgpu 0.15 (#7356) 2023-01-29 20:27:30 +00:00
wireframe.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00