bevy/crates
simens_green c74994ba69 Added TryFrom for VertexAttributeValues (#1963)
This implementations allows you
convert std::vec::Vec<T> to VertexAttributeValues::T and back.

# Examples

```rust
use std::convert::TryInto;
use bevy_render::mesh::VertexAttributeValues;

// creating vector of values
let before = vec![[0_u32; 4]; 10];
let values = VertexAttributeValues::from(before.clone());
let after: Vec<[u32; 4]> = values.try_into().unwrap();

assert_eq!(before, after);
```

Co-authored-by: aloucks <aloucks@cofront.net>
Co-authored-by: simens_green <34134129+simensgreen@users.noreply.github.com>
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-04-20 20:41:32 +00:00
..
bevy_app run some examples on CI using swiftshader (#1826) 2021-04-14 21:40:36 +00:00
bevy_asset Document setting "CARGO_MANIFEST_DIR" for asset root (#1950) 2021-04-19 22:16:23 +00:00
bevy_audio Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_core Doctest improvments (#1937) 2021-04-16 19:13:08 +00:00
bevy_derive Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_diagnostic Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_dylib Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_dynamic_plugin Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_ecs Added missing Component Bound to Res<> and ResMut<> (#1962) 2021-04-19 21:53:34 +00:00
bevy_gilrs Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_gltf calculate flat normals for mesh if missing (#1808) 2021-04-15 21:06:49 +00:00
bevy_input Moved events to ECS (#1823) 2021-04-13 20:36:37 +00:00
bevy_internal run some examples on CI using swiftshader (#1826) 2021-04-14 21:40:36 +00:00
bevy_log Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_math Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_pbr fix memory size for PointLightBundle (#1940) 2021-04-19 19:30:39 +00:00
bevy_reflect Override size_hint for all Iterators and add ExactSizeIterator where applicable (#1734) 2021-04-13 01:28:14 +00:00
bevy_render Added TryFrom for VertexAttributeValues (#1963) 2021-04-20 20:41:32 +00:00
bevy_scene Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_sprite Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_tasks Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_text Update old docs mentioning Camera2dBundle (#1836) 2021-04-06 21:05:08 +00:00
bevy_transform Add synonyms for transform relative vectors (#1667) 2021-04-12 21:53:05 +00:00
bevy_ui Label for ui_focus_system (#1926) 2021-04-19 19:15:27 +00:00
bevy_utils Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_wgpu Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_window Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00
bevy_winit Release 0.5.0 (#1835) 2021-04-06 18:48:48 +00:00