more pipeline state
continuous-integration/drone/push Build is passing Details

main
cosmonaut 2021-01-27 15:23:43 -08:00
parent c4e9ba2ae4
commit 6ae0fef808
3 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,5 @@
--- ---
title: "DepthStencilState" title: "Depth Stencil State"
date: 2021-01-27T14:42:40-08:00 date: 2021-01-27T14:42:40-08:00
weight: 2 weight: 2
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "GraphicsPipelineLayoutInfo" title: "Graphics Pipeline Layout Info"
date: 2021-01-27T15:04:37-08:00 date: 2021-01-27T15:04:37-08:00
weight: 3 weight: 3
--- ---

View File

@ -0,0 +1,15 @@
---
title: "Multisample State"
date: 2021-01-27T15:10:55-08:00
weight: 4
---
This is another basic one. `MultisampleCount` tells the pipeline how many samples should be used in rasterization, and `SampleMask` is a coverage mask used by the multisampling process. You can read about how that process works [here](https://www.khronos.org/registry/vulkan/specs/1.2/html/chap26.html#primsrast-multisampling).
```cs
var myMultisampleState = new MultisampleState
{
MultisampleCount = SampleCount.Four,
SampleMask = uint.MaxValue // all samples will be written
};
```