try fix x11 screens

This commit is contained in:
galister
2024-02-27 21:42:17 +01:00
parent b045f46b12
commit 1ce07c87d2
2 changed files with 23 additions and 2 deletions

View File

@@ -80,6 +80,26 @@ pub mod frag_sprite {
}
}
pub mod frag_screen {
vulkano_shaders::shader! {
ty: "fragment",
src: r"#version 310 es
precision highp float;
layout (location = 0) in vec2 in_uv;
layout (location = 0) out vec4 out_color;
layout (set = 0, binding = 0) uniform sampler2D in_texture;
void main()
{
out_color = texture(in_texture, in_uv);
out_color.a = 1.0;
}
",
}
}
pub mod frag_srgb {
vulkano_shaders::shader! {
ty: "fragment",