You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/Feature/Common/Assets/Passes/DepthDownsample.pass

68 lines
2.1 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "DepthDownsampleTemplate",
"PassClass": "ComputePass",
"Slots": [
{
"Name": "FullResDepth",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "HalfResDepth",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader",
"LoadStoreAction": {
"LoadAction": "Clear"
}
}
],
"ImageAttachments": [
{
"Name": "DownsampledDepth",
"SizeSource": {
"Source": {
"Pass": "This",
"Attachment": "FullResDepth"
},
"Multipliers": {
"WidthMultiplier": 0.5,
"HeightMultiplier": 0.5
}
},
"ImageDescriptor": {
"Format": "R32_FLOAT"
}
}
],
"Connections": [
{
"LocalSlot": "HalfResDepth",
"AttachmentRef": {
"Pass": "This",
"Attachment": "DownsampledDepth"
}
}
],
"FallbackConnections": [
{
"Input": "FullResDepth",
"Output": "HalfResDepth"
}
],
"PassData": {
"$type": "ComputePassData",
"ShaderAsset": {
"FilePath": "Shaders/PostProcessing/DepthDownsample.shader"
},
"Make Fullscreen Pass": true,
"PipelineViewTag": "MainCamera"
}
}
}
}