projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git]
/
Test
/
spv.buffer.autoassign.frag
1
2
cbuffer MyUB1 : register(b5) // explicitly assigned & offsetted
3
{
4
float g_a;
5
int g_b;
6
};
7
8
cbuffer MyUB2 // implicitly assigned
9
{
10
float g_c;
11
};
12
13
cbuffer MyUB3 // implicitly assigned
14
{
15
float g_d;
16
};
17
18
struct PS_OUTPUT
19
{
20
float4 Color : SV_Target0;
21
};
22
23
PS_OUTPUT main()
24
{
25
PS_OUTPUT psout;
26
psout.Color = g_a + g_b + g_c + g_d;
27
return psout;
28
}