MeshletsParent.pass 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "MeshletsParentPassTemplate",
  8. "PassClass": "ParentPass",
  9. "Slots": [
  10. {
  11. "Name": "RenderTargetInputOutput",
  12. "SlotType": "InputOutput",
  13. "ScopeAttachmentUsage": "RenderTarget"
  14. },
  15. {
  16. "Name": "DepthStencilInputOutput",
  17. "SlotType": "InputOutput",
  18. "ScopeAttachmentUsage": "DepthStencil"
  19. }
  20. ],
  21. "PassRequests": [
  22. {
  23. "Name": "MeshletsComputePass",
  24. "TemplateName": "MeshletsComputePassTemplate",
  25. "Connections": [
  26. ],
  27. "PassData": {
  28. "$type": "ComputePassData",
  29. "ShaderAsset": {
  30. "FilePath": "Shaders/MeshletsCompute.shader"
  31. }
  32. }
  33. },
  34. {
  35. "Name": "MeshletsRenderPass",
  36. "TemplateName": "MeshletsRenderPassTemplate",
  37. "Connections": [
  38. // Input/Outputs...
  39. {
  40. "LocalSlot": "DepthStencilInputOutput",
  41. "AttachmentRef": {
  42. "Pass": "Parent",
  43. "Attachment": "DepthStencilInputOutput"
  44. }
  45. },
  46. {
  47. "LocalSlot": "RenderTargetInputOutput",
  48. "AttachmentRef": {
  49. "Pass": "Parent",
  50. "Attachment": "RenderTargetInputOutput"
  51. }
  52. }
  53. ],
  54. "PassData": {
  55. "$type": "RasterPassData",
  56. "DrawListTag": "MeshletsDrawList",
  57. "BindViewSrg": true,
  58. "PassSrgShaderAsset": {
  59. "FilePath": "Shaders/MeshletsDebugRenderShader.shader"
  60. }
  61. }
  62. }
  63. ]
  64. }
  65. }
  66. }