basic_src.spvasm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ;; Basic test for spirv-diff
  2. ; SPIR-V
  3. ; Version: 1.0
  4. ; Generator: Google ANGLE Shader Compiler; 0
  5. ; Bound: 27
  6. ; Schema: 0
  7. OpCapability Shader
  8. OpMemoryModel Logical GLSL450
  9. OpEntryPoint Vertex %22 "main" %4 %14 %19
  10. OpSource GLSL 450
  11. OpName %4 "_ua_position"
  12. OpName %14 "ANGLEXfbPosition"
  13. OpName %17 "gl_PerVertex"
  14. OpMemberName %17 0 "gl_Position"
  15. OpMemberName %17 1 "gl_PointSize"
  16. OpMemberName %17 2 "gl_ClipDistance"
  17. OpMemberName %17 3 "gl_CullDistance"
  18. OpName %19 ""
  19. OpName %22 "main"
  20. OpDecorate %4 Location 0
  21. OpDecorate %14 Location 0
  22. OpMemberDecorate %17 1 RelaxedPrecision
  23. OpMemberDecorate %17 0 BuiltIn Position
  24. OpMemberDecorate %17 1 BuiltIn PointSize
  25. OpMemberDecorate %17 2 BuiltIn ClipDistance
  26. OpMemberDecorate %17 3 BuiltIn CullDistance
  27. OpDecorate %17 Block
  28. %1 = OpTypeFloat 32
  29. %2 = OpTypeVector %1 4
  30. %5 = OpTypeInt 32 0
  31. %6 = OpTypeInt 32 1
  32. %15 = OpConstant %5 8
  33. %16 = OpTypeArray %1 %15
  34. %17 = OpTypeStruct %2 %1 %16 %16
  35. %20 = OpTypeVoid
  36. %25 = OpConstant %6 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. %14 = OpVariable %13 Output
  43. %19 = OpVariable %18 Output
  44. %22 = OpFunction %20 None %21
  45. %23 = OpLabel
  46. %24 = OpLoad %2 %4
  47. %26 = OpAccessChain %13 %19 %25
  48. OpStore %26 %24
  49. OpReturn
  50. OpFunctionEnd