calc_lod.ref 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %dx.types.Handle = type { i8* }
  2. %dx.types.f32 = type { float }
  3. %dx.types.Sampler = type opaque
  4. define void @main() {
  5. entry:
  6. %0 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 0, i32 0, i32 0, i1 false)
  7. %1 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 0, i32 1, i32 1, i1 false)
  8. %2 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 0, i32 2, i32 2, i1 false)
  9. %3 = call %dx.types.Handle @dx.op.createHandle(i32 57, i8 3, i32 0, i32 0, i1 false)
  10. %4 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  11. %5 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  12. %6 = call float @dx.op.calculateLOD.f32(i32 81, %dx.types.Handle %0, %dx.types.Handle %3, float %4, float %5, float undef, i1 true)
  13. %7 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  14. %8 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  15. %9 = call float @dx.op.calculateLOD.f32(i32 81, %dx.types.Handle %1, %dx.types.Handle %3, float %7, float %8, float undef, i1 true)
  16. %10 = fadd fast float %9, %6
  17. %11 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 0, i32 undef)
  18. %12 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 1, i32 undef)
  19. %13 = call float @dx.op.loadInput.f32(i32 4, i32 0, i32 0, i8 2, i32 undef)
  20. %14 = call float @dx.op.calculateLOD.f32(i32 81, %dx.types.Handle %2, %dx.types.Handle %3, float %11, float %12, float %13, i1 true)
  21. %15 = fadd fast float %14, %10
  22. %16 = fadd fast float %14, %10
  23. %17 = fadd fast float %14, %10
  24. %18 = fadd fast float %14, %10
  25. call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0, float %15)
  26. call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 1, float %16)
  27. call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 2, float %17)
  28. call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 3, float %18)
  29. ret void
  30. }
  31. ; Function Attrs: nounwind readonly
  32. declare %dx.types.Handle @dx.op.createHandle(i32, i8, i32, i32, i1) #0
  33. ; Function Attrs: nounwind readnone
  34. declare float @dx.op.loadInput.f32(i32, i32, i32, i8, i32) #1
  35. ; Function Attrs: nounwind readonly
  36. declare float @dx.op.calculateLOD.f32(i32, %dx.types.Handle, %dx.types.Handle, float, float, float, i1) #0
  37. ; Function Attrs: nounwind
  38. declare void @dx.op.tempRegStore.f32(i32, i32, float) #2
  39. ; Function Attrs: nounwind readonly
  40. declare float @dx.op.tempRegLoad.f32(i32, i32) #0
  41. ; Function Attrs: nounwind
  42. declare void @dx.op.storeOutput.f32(i32, i32, i32, i8, float) #2
  43. attributes #0 = { nounwind readonly }
  44. attributes #1 = { nounwind readnone }
  45. attributes #2 = { nounwind }
  46. !dx.version = !{!0}
  47. !dx.valver = !{!0}
  48. !dx.shaderModel = !{!1}
  49. !dx.resources = !{!2}
  50. !dx.entryPoints = !{!10}
  51. !llvm.ident = !{!18}
  52. !0 = !{i32 1, i32 0}
  53. !1 = !{!"ps", i32 6, i32 0}
  54. !2 = !{!3, null, null, !8}
  55. !3 = !{!4, !6, !7}
  56. !4 = !{i32 0, %dx.types.f32 addrspace(1)* undef, !"T0", i32 0, i32 0, i32 1, i32 2, i32 0, !5}
  57. !5 = !{i32 0, i32 9}
  58. !6 = !{i32 1, %dx.types.f32 addrspace(1)* undef, !"T1", i32 0, i32 1, i32 1, i32 7, i32 0, !5}
  59. !7 = !{i32 2, %dx.types.f32 addrspace(1)* undef, !"T2", i32 0, i32 2, i32 1, i32 9, i32 0, !5}
  60. !8 = !{!9}
  61. !9 = !{i32 0, %dx.types.Sampler addrspace(1)* undef, !"S0", i32 0, i32 0, i32 1, i32 0, null}
  62. !10 = !{void ()* @main, !"main", !11, !2, !17}
  63. !11 = !{!12, !15, null}
  64. !12 = !{!13}
  65. !13 = !{i32 0, !"A", i8 9, i8 0, !14, i8 2, i32 1, i8 4, i32 0, i8 0, null}
  66. !14 = !{i32 0}
  67. !15 = !{!16}
  68. !16 = !{i32 0, !"SV_Target", i8 9, i8 16, !14, i8 0, i32 1, i8 4, i32 0, i8 0, null}
  69. !17 = !{i32 0, i64 256}
  70. !18 = !{!"dxbc2dxil 1.2"}