We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aadeb2 commit 039f1b7Copy full SHA for 039f1b7
Chapter 10 Blending/GameApp.cpp
@@ -95,6 +95,8 @@ void GameApp::Startup(void)
95
GraphicsPSO transparentPSO = defaultPSO;
96
auto blend = Graphics::BlendTraditional;
97
blend.RenderTarget[0].DestBlendAlpha = D3D12_BLEND_ZERO;
98
+ // 习题5 只允许写入蓝和alpha通道
99
+ //blend.RenderTarget[0].RenderTargetWriteMask = (D3D12_COLOR_WRITE_ENABLE_BLUE | D3D12_COLOR_WRITE_ENABLE_ALPHA);
100
transparentPSO.SetBlendState(blend);
101
transparentPSO.Finalize();
102
m_mapPSO[E_EPT_TRANSPARENT] = transparentPSO;
0 commit comments