bevy/crates/bevy_sprite/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
..
mesh2d Compute vertex_count for indexed meshes on GpuMesh (#8460) 2023-04-22 17:28:58 +00:00
render Better error message when index does not exist in texture atlas (#8396) 2023-04-17 16:10:58 +00:00
bundle.rs Doc bevy sprite (#7858) 2023-03-03 18:14:40 +00:00
collide_aabb.rs Derive Copy and Clone for Collision (#8121) 2023-03-18 04:55:31 +00:00
dynamic_texture_atlas_builder.rs Doc bevy sprite (#7858) 2023-03-03 18:14:40 +00:00
lib.rs Add Reflection Macros to TextureAtlasSprite (#8428) 2023-04-17 20:24:17 +00:00
sprite.rs Add ReflectComponent registration for Sprite (#8207) 2023-03-27 21:18:10 +00:00
texture_atlas.rs Add Reflection Macros to TextureAtlasSprite (#8428) 2023-04-17 20:24:17 +00:00
texture_atlas_builder.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00