diff --git a/content/Graphics/Resources/GraphicsPipeline/AttachmentInfo.md b/content/Graphics/Resources/GraphicsPipeline/AttachmentInfo.md index 613a636..753607d 100644 --- a/content/Graphics/Resources/GraphicsPipeline/AttachmentInfo.md +++ b/content/Graphics/Resources/GraphicsPipeline/AttachmentInfo.md @@ -1,7 +1,7 @@ --- title: "Attachment Info" date: 2021-01-28T12:55:51-08:00 -weight: 0 +weight: 1 --- GraphicsPipelineAttachmentInfo tells the graphics pipeline what kinds of render passes will be used with the pipeline. These are *compatible* render passes. It also describes how the pipeline should blend colors. Blending does not affect compatibility, but the other properties do. @@ -40,3 +40,12 @@ var myColorAttachmentDescription = new ColorAttachmentDescriptions BlendState = myColorTargetBlendState, }; ``` + +There's a convenient constructor for putting this all together. + +```cs +var myAttachmentInfo = new GraphicsPipelineAttachmentInfo( + TextureFormat.D16, + myColorAttachmentDescription +); +```