From 8e346922508aa3eaccd6e12f2917f6574f349843 Mon Sep 17 00:00:00 2001 From: nyorain Date: Sun, 21 Feb 2021 18:30:12 +0100 Subject: render/vulkan: add Vulkan renderer This new renderer is implemented with the existing wlr_renderer API (which is known to be sub-optimal for some operations). It's not used by default, but users can opt-in by setting WLR_RENDERER=vulkan. The renderer depends on VK_EXT_image_drm_format_modifier and VK_EXT_physical_device_drm. Co-authored-by: Simon Ser Co-authored-by: Jan Beich --- render/vulkan/shaders/quad.frag | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 render/vulkan/shaders/quad.frag (limited to 'render/vulkan/shaders/quad.frag') diff --git a/render/vulkan/shaders/quad.frag b/render/vulkan/shaders/quad.frag new file mode 100644 index 00000000..affd1f11 --- /dev/null +++ b/render/vulkan/shaders/quad.frag @@ -0,0 +1,10 @@ +#version 450 + +layout(location = 0) out vec4 out_color; +layout(push_constant) uniform UBO { + layout(offset = 80) vec4 color; +} data; + +void main() { + out_color = data.color; +} -- cgit v1.2.3