3
0

DiffuseProbeGridDownsample.pass 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "DiffuseProbeGridDownsamplePassTemplate",
  8. "PassClass": "DiffuseProbeGridDownsamplePass",
  9. "Slots": [
  10. {
  11. "Name": "NormalInput",
  12. "SlotType": "Input",
  13. "ScopeAttachmentUsage": "Shader"
  14. },
  15. {
  16. "Name": "DepthStencilTextureInput",
  17. "SlotType": "Input",
  18. "ScopeAttachmentUsage": "Shader",
  19. "ImageViewDesc": {
  20. "AspectFlags": [
  21. "Depth"
  22. ]
  23. }
  24. },
  25. {
  26. "Name": "DownsampledDepthOutput",
  27. "SlotType": "Output",
  28. "ScopeAttachmentUsage": "DepthStencil",
  29. "LoadStoreAction": {
  30. "LoadAction": "DontCare",
  31. "LoadActionStencil": "DontCare"
  32. }
  33. },
  34. {
  35. "Name": "DownsampledNormalOutput",
  36. "SlotType": "Output",
  37. "ScopeAttachmentUsage": "RenderTarget",
  38. "LoadStoreAction": {
  39. "LoadAction": "DontCare"
  40. }
  41. }
  42. ],
  43. "ImageAttachments": [
  44. {
  45. "Name": "DownsampledDepthImage",
  46. "SizeSource": {
  47. "Source": {
  48. "Pass": "Parent",
  49. "Attachment": "DepthStencilInputOutput"
  50. },
  51. "Multipliers": {
  52. "WidthMultiplier": 0.25,
  53. "HeightMultiplier": 0.25
  54. }
  55. },
  56. "MultisampleSource": {
  57. "Pass": "Parent",
  58. "Attachment": "DepthStencilInputOutput"
  59. },
  60. "FormatSource": {
  61. "Pass": "Parent",
  62. "Attachment": "DepthStencilInputOutput"
  63. },
  64. "ImageDescriptor": {
  65. "SharedQueueMask": "Graphics"
  66. }
  67. },
  68. {
  69. "Name": "DownsampledNormalImage",
  70. "SizeSource": {
  71. "Source": {
  72. "Pass": "This",
  73. "Attachment": "NormalInput"
  74. },
  75. "Multipliers": {
  76. "WidthMultiplier": 0.25,
  77. "HeightMultiplier": 0.25
  78. }
  79. },
  80. "MultisampleSource": {
  81. "Pass": "This",
  82. "Attachment": "NormalInput"
  83. },
  84. "ImageDescriptor": {
  85. "Format": "R16G16B16A16_FLOAT",
  86. "SharedQueueMask": "Graphics"
  87. }
  88. }
  89. ],
  90. "Connections": [
  91. {
  92. "LocalSlot": "DownsampledNormalOutput",
  93. "AttachmentRef": {
  94. "Pass": "This",
  95. "Attachment": "DownsampledNormalImage"
  96. }
  97. },
  98. {
  99. "LocalSlot": "DownsampledDepthOutput",
  100. "AttachmentRef": {
  101. "Pass": "This",
  102. "Attachment": "DownsampledDepthImage"
  103. }
  104. }
  105. ],
  106. "PassData": {
  107. "$type": "FullscreenTrianglePassData",
  108. "ShaderAsset": {
  109. "FilePath": "Shaders/DiffuseGlobalIllumination/DiffuseProbeGridDownsample.shader"
  110. },
  111. "BindViewSrg": true
  112. }
  113. }
  114. }
  115. }