Skip to content

Commit

Permalink
Migrate to encase from crevice (#4339)
Browse files Browse the repository at this point in the history
# 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>
  • Loading branch information
teoxoy and cart committed May 18, 2022
1 parent 1320818 commit 7cb4d3c
Show file tree
Hide file tree
Showing 57 changed files with 543 additions and 4,277 deletions.
36 changes: 0 additions & 36 deletions crates/bevy_crevice/Cargo.toml

This file was deleted.

201 changes: 0 additions & 201 deletions crates/bevy_crevice/LICENSE-APACHE

This file was deleted.

19 changes: 0 additions & 19 deletions crates/bevy_crevice/LICENSE-MIT

This file was deleted.

Loading

0 comments on commit 7cb4d3c

Please sign in to comment.