SubpassesPipeline.pass 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "SubpassesPipelineTemplate",
  8. "PassClass": "ParentPass",
  9. "Slots": [
  10. {
  11. "Name": "PipelineOutput",
  12. "SlotType": "InputOutput"
  13. }
  14. ],
  15. "PassData": {
  16. "$type": "PassData",
  17. "PipelineGlobalConnections": [
  18. {
  19. "GlobalName": "PipelineOutput",
  20. "Slot": "PipelineOutput"
  21. }
  22. ]
  23. , "MergeChildrenAsSubpasses": true
  24. },
  25. "PassRequests": [
  26. {
  27. "Name": "ForwardSubpass",
  28. "TemplateName": "ForwardSubpassExampleTemplate",
  29. "PassData": {
  30. "$type": "RasterPassData",
  31. "DrawListTag": "multiViewForward",
  32. "BindViewSrg": true,
  33. "PassSrgShaderAsset": {
  34. "FilePath": "Shaders/ForwardPassSrg.shader"
  35. }
  36. }
  37. },
  38. {
  39. "Name": "SkyBoxSubpass",
  40. "TemplateName": "SkyBoxSubpassExampleTemplate",
  41. "Enabled": true,
  42. "Connections": [
  43. {
  44. "LocalSlot": "LightingOutput",
  45. "AttachmentRef": {
  46. "Pass": "ForwardSubpass",
  47. "Attachment": "LightingOutput"
  48. }
  49. },
  50. {
  51. "LocalSlot": "SkyBoxDepth",
  52. "AttachmentRef": {
  53. "Pass": "ForwardSubpass",
  54. "Attachment": "DepthOutput"
  55. }
  56. }
  57. ]
  58. }
  59. ]
  60. }
  61. }
  62. }