update attachmentInfo docs
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
db898a40d3
commit
00f6c25519
|
@ -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
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue