Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ubo-offset-out-of-order.frag « frag « shaders-hlsl-no-opt - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77760522f9475d3a96f155f4d7961987185f4fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 450

layout(location = 0) out vec4 FragColor;

layout(set = 0, binding = 0) uniform UBO
{
	layout(offset = 16) mat4 m;
	layout(offset = 0) vec4 v;
};

layout(location = 0) in vec4 vColor;

void main()
{
	FragColor = m * vColor + v;
}