SPIRV-Cross/reference/shaders/vulkan/frag/push-constant.vk.frag
Hans-Kristian Arntzen 8869a167d6 Drop --vulkan flag to test_shaders.py
We can infer shader types from file extensions.
2016-05-11 20:02:31 +02:00

21 lines
305 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
struct PushConstants
{
vec4 value0;
vec4 value1;
};
uniform PushConstants push;
layout(location = 0) out vec4 FragColor;
layout(location = 0) in vec4 vColor;
void main()
{
FragColor = ((vColor + push.value0) + push.value1);
}