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.
17 lines
372 B
GLSL
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);
|
|
}
|