diff options
author | 2022-10-06 19:13:40 -0700 | |
---|---|---|
committer | 2022-10-06 19:13:40 -0700 | |
commit | 72feba51bed41db0bc04b43167d5d3b43007fd44 (patch) | |
tree | 36fc28580f594656b4bd214df85145b8689d4660 /wgpu/src/triangle.rs | |
parent | 9c7bf417ac9c1ac72bcc55aa3cd5e8eb962243a2 (diff) | |
download | iced-72feba51bed41db0bc04b43167d5d3b43007fd44.tar.gz iced-72feba51bed41db0bc04b43167d5d3b43007fd44.tar.bz2 iced-72feba51bed41db0bc04b43167d5d3b43007fd44.zip |
Fixed some imports/documentation.
Diffstat (limited to 'wgpu/src/triangle.rs')
-rw-r--r-- | wgpu/src/triangle.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 6e35be3c..791c9833 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -101,8 +101,7 @@ impl Pipeline { //count the total amount of vertices & indices we need to handle let (total_vertices, total_indices) = attribute_count_of(meshes); - // Then we ensure the current attribute buffers are big enough, resizing if necessary - // with wgpu this means recreating the buffer. + // Then we ensure the current attribute buffers are big enough, resizing if necessary. //We are not currently using the return value of these functions as we have no system in //place to calculate mesh diff, or to know whether or not that would be more performant for @@ -190,9 +189,6 @@ impl Pipeline { depth_stencil_attachment: None, }); - //TODO I can't figure out a clean way to encapsulate these into their appropriate - // structs without displeasing the borrow checker due to the lifetime requirements of - // render_pass & using a mutable reference to each pipeline in a loop... let mut num_solids = 0; let mut num_gradients = 0; |