From 00f6c25519bba192d3dea179e798b03afeb0634f Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 4 Mar 2022 10:40:39 -0800 Subject: [PATCH] update attachmentInfo docs --- .../Resources/GraphicsPipeline/AttachmentInfo.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 +); +```