123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {
- "Type": "JsonSerialization",
- "Version": 1,
- "ClassName": "PassAsset",
- "ClassData": {
- "PassTemplate": {
- "Name": "ForwardPassExampleTemplate",
- "PassClass": "RasterPass",
- "Slots": [
- // Inputs...
- {
- "Name": "BRDFTextureInput",
- "ShaderInputName": "m_brdfMap",
- "SlotType": "Input",
- "ScopeAttachmentUsage": "Shader"
- },
- // Outputs...
- {
- "Name": "DepthOutput",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "DepthStencil",
- // Specifying the AspectFlags is very important
- // when using Subpasses because it avoids Validation errors.
- "ImageViewDesc": {
- "AspectFlags": [
- "Depth"
- ]
- },
- "LoadStoreAction": {
- "ClearValue": {
- "Type": "DepthStencil"
- },
- "LoadAction": "Clear",
- "LoadActionStencil": "DontCare",
- // Very important to Store the tile back to memory when using independent passes.
- "StoreAction": "Store",
- "StoreActionStencil": "DontCare"
- }
- },
- {
- "Name": "LightingOutput",
- "SlotType": "Output",
- "ScopeAttachmentUsage": "RenderTarget",
- "LoadStoreAction": {
- "ClearValue": {
- "Value": [
- 0.0,
- 0.0,
- 0.0,
- 0.0
- ]
- },
- "LoadAction": "Clear",
- "StoreAction": "Store"
- }
- }
- ],
- "ImageAttachments": [
- {
- "Name": "DepthAttachment",
- "SizeSource": {
- "Source": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- "ImageDescriptor": {
- "Format": "D32_FLOAT_S8X24_UINT",
- "SharedQueueMask": "Graphics"
- }
- },
- {
- "Name": "BRDFTexture",
- "Lifetime": "Imported",
- "AssetRef": {
- "FilePath": "Textures/BRDFTexture.attimage"
- }
- }
- ],
- "Connections": [
- {
- "LocalSlot": "DepthOutput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "DepthAttachment"
- }
- },
- {
- "LocalSlot": "LightingOutput",
- "AttachmentRef": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- },
- {
- "LocalSlot": "BRDFTextureInput",
- "AttachmentRef": {
- "Pass": "This",
- "Attachment": "BRDFTexture"
- }
- }
- ]
- }
- }
- }
|