Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb9cad38f2 | ||
|
|
db9b0f21d5 | ||
|
|
2b6a6ab378 |
No files matched your search
@@ -137,7 +137,10 @@ impl UiRenderNode {
|
||||
source: ShaderSource::Wgsl(SHAPE_SHADER.into()),
|
||||
});
|
||||
|
||||
let window_uniform = WindowUniform::default();
|
||||
let window_uniform = WindowUniform {
|
||||
width: config.width as f32,
|
||||
height: config.height as f32,
|
||||
};
|
||||
let window_buffer = device.create_buffer_init(&BufferInitDescriptor {
|
||||
label: Some("window"),
|
||||
contents: bytemuck::cast_slice(&[window_uniform]),
|
||||
|
||||
@@ -45,6 +45,7 @@ impl UiRenderer {
|
||||
}
|
||||
|
||||
self.queue.submit(std::iter::once(encoder.finish()));
|
||||
self.window.pre_present_notify();
|
||||
output.present();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user