ladybird/UI/Qt/Shaders/WebContentViewLinux.frag
Andreas Kling 0607a181a8 UI/Qt: Present Linux DMABUF frames with QVulkanWindow
Use a native QVulkanWindow child for Linux DMABUF presentation instead
of making WebContentView itself a QRhiWidget. This keeps BrowserWindow
on Qt's normal QWidget backing store path while sampling compositor
DMABUF backing stores directly in Vulkan.

Keep WebContentView's paintEvent as fallback for builds without Vulkan
DMABUF support and for cases where the Vulkan instance or window cannot
be created. Set an explicit Vulkan API version before creating the
shared QVulkanInstance so validation layers do not reject Qt defaults.
2026-06-12 21:45:22 +02:00

17 lines
372 B
GLSL

/*
* Copyright (c) 2026-present, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#version 450
layout(set = 0, binding = 0) uniform sampler2D web_content_texture;
layout(location = 0) in vec2 texture_coordinates;
layout(location = 0) out vec4 output_color;
void main()
{
output_color = texture(web_content_texture, texture_coordinates);
}