Files
2021-03-25 13:57:57 -07:00

106 lines
3.5 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "DepthMSAAParentTemplate",
"PassClass": "ParentPass",
"Slots": [
// Inputs...
{
"Name": "SkinnedMeshes",
"SlotType": "Input"
},
// Outputs...
{
"Name": "DepthMSAA",
"SlotType": "Output"
},
{
"Name": "Depth",
"SlotType": "Output"
},
{
"Name": "DepthLinear",
"SlotType": "Output"
},
// SwapChain here is only used to reference the frame height and format
{
"Name": "SwapChainOutput",
"SlotType": "InputOutput"
}
],
"Connections": [
{
"LocalSlot": "DepthMSAA",
"AttachmentRef": {
"Pass": "DepthMSAAPass",
"Attachment": "Output"
}
},
{
"LocalSlot": "Depth",
"AttachmentRef": {
"Pass": "MSAAResolveDepthPass",
"Attachment": "Output"
}
},
{
"LocalSlot": "DepthLinear",
"AttachmentRef": {
"Pass": "DepthToLinearDepthPass",
"Attachment": "Output"
}
}
],
"PassRequests": [
{
"Name": "DepthMSAAPass",
"TemplateName": "DepthMSAAPassTemplate",
"PassData": {
"$type": "RasterPassData",
"DrawListTag": "depth",
"PipelineViewTag": "MainCamera"
},
"Connections": [
{
"LocalSlot": "SkinnedMeshes",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "SkinnedMeshes"
}
}
]
},
{
"Name": "MSAAResolveDepthPass",
"TemplateName": "MSAAResolveDepthTemplate",
"Connections": [
{
"LocalSlot": "Input",
"AttachmentRef": {
"Pass": "DepthMSAAPass",
"Attachment": "Output"
}
}
]
},
{
"Name": "DepthToLinearDepthPass",
"TemplateName": "DepthToLinearTemplate",
"Connections": [
{
"LocalSlot": "Input",
"AttachmentRef": {
"Pass": "MSAAResolveDepthPass",
"Attachment": "Output"
}
}
]
}
]
}
}
}