summaryrefslogtreecommitdiffstats
path: root/wgpu/src
diff options
context:
space:
mode:
authorLibravatar shan <shankern@protonmail.com>2022-10-05 16:07:43 -0700
committerLibravatar shan <shankern@protonmail.com>2022-10-05 16:07:43 -0700
commit1eb8d972ba60592da7bfc27fe7ec80138e64dd7b (patch)
tree1951255bcb8d2b87767da406eb87b80ab5a709cc /wgpu/src
parentf7ce7244d017ec16545a3e52b6e7cf634bbffd4a (diff)
downloadiced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.gz
iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.bz2
iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.zip
Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant.
Diffstat (limited to '')
-rw-r--r--wgpu/src/triangle/gradient.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/triangle/gradient.rs b/wgpu/src/triangle/gradient.rs
index c647e6af..b6553708 100644
--- a/wgpu/src/triangle/gradient.rs
+++ b/wgpu/src/triangle/gradient.rs
@@ -54,8 +54,8 @@ impl GradientPipeline {
"iced_wgpu::triangle [GRADIENT] uniforms",
);
- //TODO: With a WASM target storage buffers are not supported. Will need to use UBOs & static
- // sized array (64 on OpenGL side right now) to make gradients work
+ //Note: with a WASM target storage buffers are not supported. Will need to use UBOs & static
+ // sized array (eg like the 64-sized array on OpenGL side right now) to make gradients work
let storage_buffer = DynamicBuffer::storage(
device,
"iced_wgpu::triangle [GRADIENT] storage",