summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag27
1 files changed, 27 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag b/3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag
new file mode 100644
index 00000000000..16178bfd779
--- /dev/null
+++ b/3rdparty/bgfx/3rdparty/spirv-cross/shaders-hlsl/frag/resources.frag
@@ -0,0 +1,27 @@
+#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;
+}