summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-07 23:55:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:37:31 +0100
commitb8c1809ea101cece6943432fd3597f785c39af09 (patch)
tree662b5e85e67ff33be892811bc29bfe52ae041302 /examples
parent23ed352e83dcb8a13acdac1cd4c7e2a9df492ebd (diff)
downloadiced-b8c1809ea101cece6943432fd3597f785c39af09.tar.gz
iced-b8c1809ea101cece6943432fd3597f785c39af09.tar.bz2
iced-b8c1809ea101cece6943432fd3597f785c39af09.zip
Refactor `triangle::Pipeline` into `prepare` and `render` architecture
And get rid of the staging belt! :tada:
Diffstat (limited to '')
-rw-r--r--examples/integration/src/main.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index 69f6961e..5af30ab1 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -125,9 +125,6 @@ pub fn main() {
let mut resized = false;
- // Initialize staging belt
- let mut staging_belt = wgpu::util::StagingBelt::new(5 * 1024);
-
// Initialize scene and GUI controls
let scene = Scene::new(&device, format);
let controls = Controls::new();
@@ -252,7 +249,6 @@ pub fn main() {
backend.present(
&device,
&queue,
- &mut staging_belt,
&mut encoder,
&view,
primitive,
@@ -262,7 +258,6 @@ pub fn main() {
});
// Then we submit the work
- staging_belt.finish();
queue.submit(Some(encoder.finish()));
frame.present();
@@ -272,10 +267,6 @@ pub fn main() {
state.mouse_interaction(),
),
);
-
- // And recall staging buffers
- staging_belt.recall();
-
}
Err(error) => match error {
wgpu::SurfaceError::OutOfMemory => {