blob: 5361c97bc645bafae3d8bc50f755ecf7d4ef0f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// multiple-definitions.slang
//TEST:SIMPLE:-entry main -o multiple-definitions.hlsl
__specialized_for_target(hlsl)
int a(int x)
{
int r = 0;
for(int i = 0; i < x; ++i) ++r;
return r;
}
__specialized_for_target(glsl)
int a(int x)
{
int r = 0;
for(int i = 0; i < x; ++i) ++r;
return r;
}
[shader("compute")]
void main()
{}
|