Merge remote-tracking branch 'upstream/main' into split/08-parley-text
This commit is contained in:
commit
31c65e0410
1 file changed
+4
-1
@@ -139,7 +139,10 @@ impl UiRenderNode {
|
|||||||
source: ShaderSource::Wgsl(SHAPE_SHADER.into()),
|
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 {
|
let window_buffer = device.create_buffer_init(&BufferInitDescriptor {
|
||||||
label: Some("window"),
|
label: Some("window"),
|
||||||
contents: bytemuck::cast_slice(&[window_uniform]),
|
contents: bytemuck::cast_slice(&[window_uniform]),
|
||||||
|
|||||||
Reference in new issue
Block a user