From 9304c2d04c9bfbae33cc328d404b24aba375aa4f Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 21 Oct 2021 15:51:18 -0700 Subject: Diagnostic for no type conformance + bug fix. (#1985) * Diagnostic for no type conformance + bug fix. * Fixes. * Fix. * Include heterogeneous example only with --enable-experimental-projects premake flag Co-authored-by: Yong He Co-authored-by: jsmall-nvidia --- tools/gfx/d3d12/render-d3d12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index 4d5dfda80..8029826a3 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -3844,7 +3844,7 @@ Result D3D12Device::TransientResourceHeapImpl::createCommandBuffer(ICommandBuffe Result D3D12Device::PipelineCommandEncoder::_bindRenderState(Submitter* submitter, RefPtr& newPipeline) { RootShaderObjectImpl* rootObjectImpl = &m_commandBuffer->m_rootShaderObject; - m_renderer->maybeSpecializePipeline(m_currentPipeline, rootObjectImpl, newPipeline); + SLANG_RETURN_ON_FAIL(m_renderer->maybeSpecializePipeline(m_currentPipeline, rootObjectImpl, newPipeline)); PipelineStateBase* newPipelineImpl = static_cast(newPipeline.Ptr()); auto commandList = m_d3dCmdList; auto pipelineTypeIndex = (int)newPipelineImpl->desc.type; -- cgit v1.2.3