update attachmentInfo docs
continuous-integration/drone/push Build is passing Details

main
cosmonaut 2022-03-04 10:40:39 -08:00
parent db898a40d3
commit 00f6c25519
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: "Attachment Info" title: "Attachment Info"
date: 2021-01-28T12:55:51-08:00 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. 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, BlendState = myColorTargetBlendState,
}; };
``` ```
There's a convenient constructor for putting this all together.
```cs
var myAttachmentInfo = new GraphicsPipelineAttachmentInfo(
TextureFormat.D16,
myColorAttachmentDescription
);
```