File: hlsl.singleArgIntPromo.vert

package info (click to toggle)
glslang 12.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 44,024 kB
  • sloc: cpp: 86,646; yacc: 4,020; sh: 630; python: 295; javascript: 74; ansic: 19; makefile: 14
file content (16 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
float main(): SV_Target0
{
    int d = 4;
    int2 d2 = int2(5,d);
    float  f1 = log2(5);
    float2 f2 = log(d2);
    float3 f3 = log(int3(7,2,3));
    float2 f22 = log(int2(5,d));  // This case does not work yet, due to a different bug that turns this into 2 args.

    int a = 5;
    min16float b = min16float(f16tof32(a));
    b *= b;
    uint c = f32tof16(b);

    return f1 + f2.x + f3.z + f22.y + c;
}