Skip to content

Commit 70df8e2

Browse files
* 开启MSAA和AlphaToCoverage
1 parent 20dde48 commit 70df8e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Chapter 12 The Geometry Shader/GameApp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ void GameApp::Startup(void)
104104

105105
// 公告板PSO
106106
GraphicsPSO billboardPSO = defaultPSO;
107+
billboardPSO.SetRasterizerState(Graphics::RasterizerDefaultCwMsaa);
108+
blend = Graphics::BlendDisable;
109+
blend.AlphaToCoverageEnable = true;
110+
billboardPSO.SetBlendState(blend);
107111
D3D12_INPUT_ELEMENT_DESC mInputLayoutBB[] =
108112
{
109113
{ "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 },

0 commit comments

Comments
 (0)