From 1989ef1eed6974407573d403a612657c041b9f93 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 8 Feb 2019 22:27:30 -0800 Subject: Updated constructor of DepthStencilStateDesc --- Graphics/GraphicsEngine/interface/DepthStencilState.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DepthStencilState.h b/Graphics/GraphicsEngine/interface/DepthStencilState.h index d42da3fd..2a851a44 100644 --- a/Graphics/GraphicsEngine/interface/DepthStencilState.h +++ b/Graphics/GraphicsEngine/interface/DepthStencilState.h @@ -188,13 +188,17 @@ struct DepthStencilStateDesc COMPARISON_FUNCTION _DepthFunc = DepthStencilStateDesc{}.DepthFunc, Bool _StencilEnable = DepthStencilStateDesc{}.StencilEnable, Uint8 _StencilReadMask = DepthStencilStateDesc{}.StencilReadMask, - Uint8 _StencilWriteMask = DepthStencilStateDesc{}.StencilWriteMask)noexcept : - DepthEnable ( _DepthEnable ), - DepthWriteEnable( _DepthWriteEnable ), - DepthFunc ( _DepthFunc ), - StencilEnable ( _StencilEnable ), - StencilReadMask ( _StencilReadMask ), - StencilWriteMask( _StencilWriteMask ) + Uint8 _StencilWriteMask = DepthStencilStateDesc{}.StencilWriteMask, + StencilOpDesc _FrontFace = StencilOpDesc{}, + StencilOpDesc _BackFace = StencilOpDesc{})noexcept : + DepthEnable (_DepthEnable), + DepthWriteEnable(_DepthWriteEnable), + DepthFunc (_DepthFunc), + StencilEnable (_StencilEnable), + StencilReadMask (_StencilReadMask), + StencilWriteMask(_StencilWriteMask), + FrontFace (_FrontFace), + BackFace (_BackFace) {} /// Tests if two structures are equivalent -- cgit v1.2.3