Compare commits
3
Commits
7c95a4f417
...
31c65e0410
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31c65e0410 | ||
|
|
6e271e8aee | ||
|
|
cb9cad38f2 |
@@ -139,7 +139,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]),
|
||||
|
||||
Reference in new issue
Block a user