From caf49fe5284dca1eca14930dcc057c307fc4aef2 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Fri, 20 Jan 2023 22:10:38 +0100 Subject: [PATCH] Increase board entry size --- .../elements/leaderboard/bg_generator.rs | 22 +++++++++---------- .../elements/leaderboard/deltaboard_grid.xml | 4 ++-- .../leaderboard/leaderboard_entry.xml | 2 +- .../elements/leaderboard/leaderboard_grid.xml | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/overlay/elements/leaderboard/bg_generator.rs b/src/overlay/elements/leaderboard/bg_generator.rs index d30462a..7a931a6 100644 --- a/src/overlay/elements/leaderboard/bg_generator.rs +++ b/src/overlay/elements/leaderboard/bg_generator.rs @@ -19,6 +19,17 @@ impl BackgroundGenerator { color: [f32; 4], image_infos: [(u32, u32); N], ) -> Result<[Arc; N]> { + let vertex_shader = ShaderModule::from_slice( + device.clone(), + include_bytes!("generator.vert.spv"), + ShaderType::Vertex, + )?; + let fragment_shader = ShaderModule::from_slice( + device.clone(), + include_bytes!("generator.frag.spv"), + ShaderType::Fragment, + )?; + Ok(image_infos .iter() .map(|(width, height)| { @@ -42,17 +53,6 @@ impl BackgroundGenerator { ) .build(&device)?; - let vertex_shader = ShaderModule::from_slice( - device.clone(), - include_bytes!("generator.vert.spv"), - ShaderType::Vertex, - )?; - let fragment_shader = ShaderModule::from_slice( - device.clone(), - include_bytes!("generator.frag.spv"), - ShaderType::Fragment, - )?; - let viewport = VkViewport { x: 0.0, y: 0.0, diff --git a/src/overlay/elements/leaderboard/deltaboard_grid.xml b/src/overlay/elements/leaderboard/deltaboard_grid.xml index 7244ac9..3cb0254 100644 --- a/src/overlay/elements/leaderboard/deltaboard_grid.xml +++ b/src/overlay/elements/leaderboard/deltaboard_grid.xml @@ -1,6 +1,6 @@ - - + \ No newline at end of file diff --git a/src/overlay/elements/leaderboard/leaderboard_entry.xml b/src/overlay/elements/leaderboard/leaderboard_entry.xml index 52b8716..286ad0d 100644 --- a/src/overlay/elements/leaderboard/leaderboard_entry.xml +++ b/src/overlay/elements/leaderboard/leaderboard_entry.xml @@ -1,6 +1,6 @@ - + - - + \ No newline at end of file