From f74b374c22a3fd411ef5c7b39297296f6d0aa041 Mon Sep 17 00:00:00 2001 From: azhirnov Date: Tue, 1 Sep 2020 21:24:44 +0300 Subject: fixed compilation on linux & android --- Graphics/GraphicsEngine/include/PipelineStateBase.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp index 5add92c4..48aab98b 100644 --- a/Graphics/GraphicsEngine/include/PipelineStateBase.hpp +++ b/Graphics/GraphicsEngine/include/PipelineStateBase.hpp @@ -179,8 +179,8 @@ public: if (PSODesc.PipelineType == PIPELINE_TYPE_GRAPHICS) { - CHECK_THROW(GraphicsPipeline.pVS, "Vertex shader must be defined"); - CHECK_THROW(!GraphicsPipeline.pAS && !GraphicsPipeline.pMS, "Mesh shaders are not supported in graphics pipeline"); + DEV_CHECK_ERR(GraphicsPipeline.pVS, "Vertex shader must be defined"); + DEV_CHECK_ERR(!GraphicsPipeline.pAS && !GraphicsPipeline.pMS, "Mesh shaders are not supported in graphics pipeline"); m_pVS = GraphicsPipeline.pVS; m_pPS = GraphicsPipeline.pPS; m_pGS = GraphicsPipeline.pGS; @@ -189,9 +189,9 @@ public: } else if (PSODesc.PipelineType == PIPELINE_TYPE_MESH) { - CHECK_THROW(GraphicsPipeline.pMS, "Mesh shader must be defined"); - CHECK_THROW(!GraphicsPipeline.pVS && !GraphicsPipeline.pGS && !GraphicsPipeline.pDS && !GraphicsPipeline.pHS, - "Vertex, geometry and tessellation shaders are not supported in mesh pipeline"); + DEV_CHECK_ERR(GraphicsPipeline.pMS, "Mesh shader must be defined"); + DEV_CHECK_ERR(!GraphicsPipeline.pVS && !GraphicsPipeline.pGS && !GraphicsPipeline.pDS && !GraphicsPipeline.pHS, + "Vertex, geometry and tessellation shaders are not supported in mesh pipeline"); DEV_CHECK_ERR(GraphicsPipeline.InputLayout.NumElements == 0, "Input layout ignored in mesh shader"); DEV_CHECK_ERR(GraphicsPipeline.PrimitiveTopology == PRIMITIVE_TOPOLOGY_TRIANGLE_LIST || GraphicsPipeline.PrimitiveTopology == PRIMITIVE_TOPOLOGY_UNDEFINED, -- cgit v1.2.3