Increase board entry size
This commit is contained in:
parent
c152132c74
commit
caf49fe528
4 changed files with 16 additions and 16 deletions
|
@ -19,6 +19,17 @@ impl BackgroundGenerator {
|
||||||
color: [f32; 4],
|
color: [f32; 4],
|
||||||
image_infos: [(u32, u32); N],
|
image_infos: [(u32, u32); N],
|
||||||
) -> Result<[Arc<Image>; N]> {
|
) -> Result<[Arc<Image>; 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
|
Ok(image_infos
|
||||||
.iter()
|
.iter()
|
||||||
.map(|(width, height)| {
|
.map(|(width, height)| {
|
||||||
|
@ -42,17 +53,6 @@ impl BackgroundGenerator {
|
||||||
)
|
)
|
||||||
.build(&device)?;
|
.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 {
|
let viewport = VkViewport {
|
||||||
x: 0.0,
|
x: 0.0,
|
||||||
y: 0.0,
|
y: 0.0,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
||||||
<root reference_width="2560" reference_height="1440">
|
<root reference_width="2560" reference_height="1440">
|
||||||
<!-- max 5 entries, each entry gets 39 pixel (at 1440p) -->
|
<!-- max 5 entries, each entry gets 44 pixel (at 1440p) -->
|
||||||
<grid id="main_grid" x_dim="1" y_dim="5" x_offset="-510" y_offset="10" width="500" height="195"
|
<grid id="main_grid" x_dim="1" y_dim="5" x_offset="-510" y_offset="10" width="500" height="220"
|
||||||
vert_align="top" hori_align="right" margin="0" padding="0"> </grid>
|
vert_align="top" hori_align="right" margin="0" padding="0"> </grid>
|
||||||
</root>
|
</root>
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
||||||
<root>
|
<root>
|
||||||
<grid x_dim="12" y_dim="1" padding="2" margin="2">
|
<grid x_dim="12" y_dim="1" padding="3" margin="0">
|
||||||
<icon id="place" x_slot="0" y_slot="0" x_size="2" text_color="black"></icon>
|
<icon id="place" x_slot="0" y_slot="0" x_size="2" text_color="black"></icon>
|
||||||
<icon id="name"
|
<icon id="name"
|
||||||
x_slot="2"
|
x_slot="2"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
<?xml-model href="../gui.xsd" type="application/xml" schematypes="http://www.w3.org/2001/XMLSchema"?>
|
||||||
<root reference_width="2560" reference_height="1440">
|
<root reference_width="2560" reference_height="1440">
|
||||||
<!-- max 25 entries, each entry gets 39 pixel (at 1440p) -->
|
<!-- max 20 entries, each entry gets 44 pixel (at 1440p) -->
|
||||||
<grid id="main_grid" x_dim="1" y_dim="25" x_offset="10" y_offset="10" width="500" height="975"
|
<grid id="main_grid" x_dim="1" y_dim="20" x_offset="10" y_offset="10" width="500" height="880"
|
||||||
vert_align="top" hori_align="left" margin="0" padding="0"> </grid>
|
vert_align="top" hori_align="left" margin="0" padding="0"> </grid>
|
||||||
</root>
|
</root>
|
Loading…
Reference in a new issue