gstreamer/ext/vulkan/shaders/swizzle_and_clobber_alpha.frag
Matthew Waters 615022ad93 vulkan: split vkfullscreenrender into two
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.
2019-11-28 23:27:21 +00:00

20 lines
439 B
GLSL

#version 450 core
#include "swizzle.glsl"
layout(location = 0) in vec2 inTexCoord;
layout(set = 0, binding = 0) uniform reorder {
ivec4 in_reorder_idx;
ivec4 out_reorder_idx;
};
layout(set = 0, binding = 1) uniform sampler2D inTexture0;
layout(location = 0) out vec4 outColor0;
void main()
{
vec4 rgba = swizzle (texture(inTexture0, inTexCoord), in_reorder_idx);
rgba.a = 1.0;
outColor0 = swizzle (rgba, out_reorder_idx);
}