From 6ae0fef808de293ab6c692c37e1d74a5655d65c8 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 27 Jan 2021 15:23:43 -0800 Subject: [PATCH] more pipeline state --- .../GraphicsPipeline/DepthStencilState.md | 2 +- .../GraphicsPipelineLayoutInfo.md | 2 +- .../GraphicsPipeline/MultisampleState.md | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 content/Graphics/Resources/GraphicsPipeline/MultisampleState.md diff --git a/content/Graphics/Resources/GraphicsPipeline/DepthStencilState.md b/content/Graphics/Resources/GraphicsPipeline/DepthStencilState.md index 0eee2cb..264302c 100644 --- a/content/Graphics/Resources/GraphicsPipeline/DepthStencilState.md +++ b/content/Graphics/Resources/GraphicsPipeline/DepthStencilState.md @@ -1,5 +1,5 @@ --- -title: "DepthStencilState" +title: "Depth Stencil State" date: 2021-01-27T14:42:40-08:00 weight: 2 --- diff --git a/content/Graphics/Resources/GraphicsPipeline/GraphicsPipelineLayoutInfo.md b/content/Graphics/Resources/GraphicsPipeline/GraphicsPipelineLayoutInfo.md index a60872b..4268f59 100644 --- a/content/Graphics/Resources/GraphicsPipeline/GraphicsPipelineLayoutInfo.md +++ b/content/Graphics/Resources/GraphicsPipeline/GraphicsPipelineLayoutInfo.md @@ -1,5 +1,5 @@ --- -title: "GraphicsPipelineLayoutInfo" +title: "Graphics Pipeline Layout Info" date: 2021-01-27T15:04:37-08:00 weight: 3 --- diff --git a/content/Graphics/Resources/GraphicsPipeline/MultisampleState.md b/content/Graphics/Resources/GraphicsPipeline/MultisampleState.md new file mode 100644 index 0000000..ac3aed3 --- /dev/null +++ b/content/Graphics/Resources/GraphicsPipeline/MultisampleState.md @@ -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 +}; +```