From d2d4cd68130fdcea22c2945b6d7330ebe4ff95da Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 8 Feb 2019 13:24:03 -0800 Subject: Defined constructos to fix build errors on Apple's clang --- Graphics/GraphicsTools/include/CommonlyUsedStates.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'Graphics/GraphicsTools') diff --git a/Graphics/GraphicsTools/include/CommonlyUsedStates.h b/Graphics/GraphicsTools/include/CommonlyUsedStates.h index 7cbe5aa9..6257b3c2 100644 --- a/Graphics/GraphicsTools/include/CommonlyUsedStates.h +++ b/Graphics/GraphicsTools/include/CommonlyUsedStates.h @@ -67,17 +67,16 @@ namespace Diligent { False, // AlphaToCoverageEnable False, // IndependentBlendEnable - { // RenderTagets - { - True, // BlendEnable - False, // LogicOperationEnable - BLEND_FACTOR_SRC_ALPHA, // SrcBlend - BLEND_FACTOR_INV_SRC_ALPHA, // DestBlend - BLEND_OPERATION_ADD, // BlendOp - BLEND_FACTOR_SRC_ALPHA, // SrcBlendAlpha - BLEND_FACTOR_INV_SRC_ALPHA, // DestBlendAlpha - BLEND_OPERATION_ADD // BlendOpAlpha - } + RenderTargetBlendDesc// RT0 + { + True, // BlendEnable + False, // LogicOperationEnable + BLEND_FACTOR_SRC_ALPHA, // SrcBlend + BLEND_FACTOR_INV_SRC_ALPHA, // DestBlend + BLEND_OPERATION_ADD, // BlendOp + BLEND_FACTOR_SRC_ALPHA, // SrcBlendAlpha + BLEND_FACTOR_INV_SRC_ALPHA, // DestBlendAlpha + BLEND_OPERATION_ADD // BlendOpAlpha } }; -- cgit v1.2.3