mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
28 lines
603 B
GLSL
28 lines
603 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
layout(binding = 3, std140) uniform CBuffer
|
|
{
|
|
vec4 a;
|
|
} cbuf;
|
|
|
|
layout(binding = 4) uniform sampler2D uSampledImage;
|
|
layout(binding = 5) uniform mediump texture2D uTexture;
|
|
layout(binding = 6) uniform mediump sampler uSampler;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) in vec2 vTex;
|
|
|
|
layout(std430, push_constant) uniform PushMe
|
|
{
|
|
vec4 d;
|
|
} registers;
|
|
|
|
void main()
|
|
{
|
|
vec4 c0 = texture(uSampledImage, vTex);
|
|
vec4 c1 = texture(sampler2D(uTexture, uSampler), vTex);
|
|
vec4 c2 = cbuf.a + registers.d;
|
|
FragColor = c0 + c1 + c2;
|
|
}
|