summaryrefslogtreecommitdiffstats
path: root/wgpu/src/buffer/static.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-11-28 20:29:01 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-28 20:29:01 +0100
commit8d67e21d48dcefbbb675cfad07849607ce0fe1b7 (patch)
tree58072c44539d4b7009fff3defe97834438234b1b /wgpu/src/buffer/static.rs
parent457d0560caf91884b148422e1ace3d64a38e0e33 (diff)
parentbb2bf063b472396d44f9f3114a87ba79dfd5f62e (diff)
downloadiced-8d67e21d48dcefbbb675cfad07849607ce0fe1b7.tar.gz
iced-8d67e21d48dcefbbb675cfad07849607ce0fe1b7.tar.bz2
iced-8d67e21d48dcefbbb675cfad07849607ce0fe1b7.zip
Merge pull request #1538 from iced-rs/group-solid-triangles
Group all solid triangles independently of color
Diffstat (limited to 'wgpu/src/buffer/static.rs')
-rw-r--r--wgpu/src/buffer/static.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/buffer/static.rs b/wgpu/src/buffer/static.rs
index cf06790c..ef87422f 100644
--- a/wgpu/src/buffer/static.rs
+++ b/wgpu/src/buffer/static.rs
@@ -8,7 +8,7 @@ const DEFAULT_STATIC_BUFFER_COUNT: wgpu::BufferAddress = 128;
/// A generic buffer struct useful for items which have no alignment requirements
/// (e.g. Vertex, Index buffers) & no dynamic offsets.
#[derive(Debug)]
-pub(crate) struct Buffer<T> {
+pub struct Buffer<T> {
//stored sequentially per mesh iteration; refers to the offset index in the GPU buffer
offsets: Vec<wgpu::BufferAddress>,
label: &'static str,