bevy/crates/bevy_pbr/src
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
..
environment_map Built-in skybox (#8275) 2023-04-02 10:57:12 +00:00
prepass Temporal Antialiasing (TAA) (#7291) 2023-03-27 22:22:40 +00:00
render Compute vertex_count for indexed meshes on GpuMesh (#8460) 2023-04-22 17:28:58 +00:00
alpha.rs Standard Material Blend Modes (#6644) 2023-01-21 21:46:53 +00:00
bundle.rs Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
fog.rs Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
lib.rs Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
light.rs bevy_pbr: Do not cull meshes without Aabbs from cascades (#8444) 2023-04-20 01:43:24 +00:00
material.rs Use the prepass normal texture in main pass when possible (#8231) 2023-03-29 18:04:40 +00:00
parallax.rs Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
pbr_material.rs Add parallax mapping to bevy PBR (#5928) 2023-04-15 10:25:14 +00:00
wireframe.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00