Files
2021-04-23 09:43:40 -07:00

77 lines
2.4 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "DepthUpsampleTemplate",
"PassClass": "DepthUpsamplePass",
"Slots": [
{
"Name": "FullResDepth",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "HalfResDepth",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "HalfResSource",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "Output",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader",
"LoadStoreAction": {
"LoadAction": "Clear"
}
}
],
"ImageAttachments": [
{
"Name": "UpsampledOutput",
"SizeSource": {
"Source": {
"Pass": "This",
"Attachment": "FullResDepth"
}
},
"FormatSource": {
"Pass": "This",
"Attachment": "HalfResSource"
},
"ImageDescriptor": {
"Format": "R8_UNORM"
}
}
],
"Connections": [
{
"LocalSlot": "Output",
"AttachmentRef": {
"Pass": "This",
"Attachment": "UpsampledOutput"
}
}
],
"FallbackConnections": [
{
"Input": "HalfResSource",
"Output": "Output"
}
],
"PassData": {
"$type": "ComputePassData",
"ShaderAsset": {
"FilePath": "Shaders/PostProcessing/DepthUpsample.shader"
},
"PipelineViewTag": "MainCamera"
}
}
}
}