repo.or.cz
/
vkd3d.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vkd3d-shader/hlsl: Use a block in hlsl_normalize_binary_exprs().
[vkd3d.git]
/
tests
/
hlsl
/
initializer-static-array.shader_test
blob
a974886f6374fae49a908383ac6e84ae4e153712
1
[pixel shader]
2
static const float4 array_st[3] = {
3
11, 12, 13, 14,
4
21, 22, 23, 24,
5
31, 32, 33, 34
6
};
7
8
float4 main() : SV_TARGET
9
{
10
return array_st[1];
11
}
12
13
[test]
14
draw quad
15
probe (0, 0) rgba (21, 22, 23, 24)
16
17
18
[pixel shader]
19
static const float4 array_st[4][2] = {
20
11, 12, 13, 14,
21
21, 22, 23, 24,
22
31, 32, 33, 34,
23
41, 42, 43, 44,
24
51, 52, 53, 54,
25
61, 62, 63, 64,
26
71, 72, 73, 74,
27
81, 82, 83, 84,
28
};
29
30
float4 main() : SV_TARGET
31
{
32
return array_st[2][1];
33
}
34
35
[test]
36
draw quad
37
probe (0, 0) rgba (61, 62, 63, 64)