ContrastAdaptiveSharpening.pass 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "ContrastAdaptiveSharpeningTemplate",
  8. "PassClass": "ComputePass",
  9. "Slots": [
  10. {
  11. "Name": "InputColor",
  12. "SlotType": "Input",
  13. "ShaderInputName": "m_inputColor",
  14. "ScopeAttachmentUsage": "Shader"
  15. },
  16. {
  17. "Name": "OutputColor",
  18. "SlotType": "Output",
  19. "ShaderInputName": "m_outputColor",
  20. "ScopeAttachmentUsage": "Shader"
  21. }
  22. ],
  23. "ImageAttachments": [
  24. {
  25. "Name": "Output",
  26. "FormatSource": {
  27. "Pass": "This",
  28. "Attachment": "InputColor"
  29. },
  30. "SizeSource": {
  31. "Source": {
  32. "Pass": "This",
  33. "Attachment": "InputColor"
  34. }
  35. },
  36. "ImageDescriptor": {
  37. "Format": "R16G16B16A16_FLOAT",
  38. "BindFlags": [
  39. "CopyRead",
  40. "Color",
  41. "ShaderReadWrite",
  42. "ShaderWrite",
  43. "ShaderRead"
  44. ],
  45. "SharedQueueMask": "Graphics"
  46. }
  47. }
  48. ],
  49. "Connections": [
  50. {
  51. "LocalSlot": "OutputColor",
  52. "AttachmentRef": {
  53. "Pass": "This",
  54. "Attachment": "Output"
  55. }
  56. }
  57. ],
  58. "FallbackConnections": [
  59. {
  60. "Input": "InputColor",
  61. "Output": "OutputColor"
  62. }
  63. ],
  64. "PassData": {
  65. "$type": "ComputePassData",
  66. "ShaderAsset": {
  67. "FilePath": "Shaders/PostProcessing/ContrastAdaptiveSharpening.shader"
  68. },
  69. "Make Fullscreen Pass": true,
  70. "ShaderDataMappings": {
  71. "FloatMappings": [
  72. {
  73. "Name": "m_strength",
  74. "Value": 0.5
  75. }
  76. ]
  77. }
  78. }
  79. }
  80. }
  81. }