mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
615022ad93
Part 1 is a base class (vkvideofilter) that handles instance, device, queue retrieval and holding that has been moved to the library Part 2 is a fullscreenrenderquad that is still in the plugin that performs all of the previous vulkan-specific functionality.
26 lines
675 B
GLSL
26 lines
675 B
GLSL
#version 450 core
|
|
|
|
#include "color_convert_generic.glsl"
|
|
#include "upsample_nv12.glsl"
|
|
#include "swizzle.glsl"
|
|
|
|
layout(location = 0) in vec2 inTexCoord;
|
|
|
|
layout(set = 0, binding = 0) uniform reorder {
|
|
ivec4 in_reorder_idx;
|
|
ivec4 out_reorder_idx;
|
|
ivec2 texSize;
|
|
ColorMatrices matrices;
|
|
};
|
|
layout(set = 0, binding = 1) uniform sampler2D inTexture0;
|
|
layout(set = 0, binding = 2) uniform sampler2D inTexture1;
|
|
|
|
layout(location = 0) out vec4 outColor0;
|
|
|
|
void main()
|
|
{
|
|
vec3 yuv = upsample_NV12 (inTexture0, inTexture1, inTexCoord, in_reorder_idx);
|
|
vec4 rgba = vec4(1.0);
|
|
rgba.rgb = color_convert_texel (yuv, matrices);
|
|
outColor0 = swizzle(rgba, out_reorder_idx);
|
|
}
|