bevy/examples/shader
Teodor Tanasoaia 7cb4d3cb43 Migrate to encase from crevice (#4339)
# Objective

- Unify buffer APIs
- Also see #4272

## Solution

- Replace vendored `crevice` with `encase`

---

## Changelog

Changed `StorageBuffer`
Added `DynamicStorageBuffer`
Replaced `UniformVec` with `UniformBuffer`
Replaced `DynamicUniformVec` with `DynamicUniformBuffer`

## Migration Guide

### `StorageBuffer`

removed `set_body()`, `values()`, `values_mut()`, `clear()`, `push()`, `append()`
added `set()`, `get()`, `get_mut()`

### `UniformVec` -> `UniformBuffer`

renamed `uniform_buffer()` to `buffer()`
removed `len()`, `is_empty()`, `capacity()`, `push()`, `reserve()`, `clear()`, `values()`
added `set()`, `get()`

### `DynamicUniformVec` -> `DynamicUniformBuffer`

renamed `uniform_buffer()` to `buffer()`
removed `capacity()`, `reserve()`


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-05-18 21:09:21 +00:00
..
animate_shader.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
compute_shader_game_of_life.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
custom_vertex_attribute.rs Migrate to encase from crevice (#4339) 2022-05-18 21:09:21 +00:00
shader_defs.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
shader_instancing.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00
shader_material.rs Migrate to encase from crevice (#4339) 2022-05-18 21:09:21 +00:00
shader_material_glsl.rs Migrate to encase from crevice (#4339) 2022-05-18 21:09:21 +00:00
shader_material_screenspace_texture.rs Doc/module style doc blocks for examples (#4438) 2022-05-16 13:53:20 +00:00