• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;; Tests that identical integer constants are matched, regardless of int or
2;; uint.  This helps compare output from different generators that default to
3;; int or uint for constants such as those passed to OpAccessChain.
4; SPIR-V
5; Version: 1.0
6; Generator: Google ANGLE Shader Compiler; 0
7; Bound: 27
8; Schema: 0
9OpCapability Shader
10OpMemoryModel Logical GLSL450
11OpEntryPoint Vertex %22 "main" %4 %19
12OpSource GLSL 450
13OpName %4 "_ua_position"
14OpName %17 "gl_PerVertex"
15OpMemberName %17 0 "gl_Position"
16OpMemberName %17 1 "gl_PointSize"
17OpMemberName %17 2 "gl_ClipDistance"
18OpMemberName %17 3 "gl_CullDistance"
19OpName %19 ""
20OpName %22 "main"
21OpDecorate %4 Location 0
22OpMemberDecorate %17 1 RelaxedPrecision
23OpMemberDecorate %17 0 BuiltIn Position
24OpMemberDecorate %17 1 BuiltIn PointSize
25OpMemberDecorate %17 2 BuiltIn ClipDistance
26OpMemberDecorate %17 3 BuiltIn CullDistance
27OpDecorate %17 Block
28%1 = OpTypeFloat 32
29%2 = OpTypeVector %1 4
30%5 = OpTypeInt 32 0
31%8 = OpTypeVector %5 4
32%15 = OpConstant %5 8
33%16 = OpTypeArray %1 %15
34%17 = OpTypeStruct %2 %1 %16 %16
35%20 = OpTypeVoid
36%25 = OpConstant %5 0
37%3 = OpTypePointer Input %2
38%13 = OpTypePointer Output %2
39%18 = OpTypePointer Output %17
40%21 = OpTypeFunction %20
41%4 = OpVariable %3 Input
42%19 = OpVariable %18 Output
43%22 = OpFunction %20 None %21
44%23 = OpLabel
45%24 = OpLoad %2 %4
46%26 = OpAccessChain %13 %19 %25
47OpStore %26 %24
48OpReturn
49OpFunctionEnd
50