You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOG_ERROR_AND_THROW("Shader '", pShader->GetDesc().Name, "' is not ready and cannot be used to create a pipeline state. Use GetStatus() to check the shader status.");
189
+
LOG_ERROR_AND_THROW("Shader '", pShader->GetDesc().Name, "' is in ", GetShaderStatusString(ShaderStatus),
190
+
" status and cannot be used to create a pipeline state. Use GetStatus() to check the shader status.");
190
191
}
191
192
}
192
193
}
@@ -558,7 +559,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
562
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
563
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
564
+
". Use GetStatus() to check the pipeline state status.");
562
565
563
566
*ppShaderResourceBinding = nullptr;
564
567
@@ -575,7 +578,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
581
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
582
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
583
+
". Use GetStatus() to check the pipeline state status.");
579
584
580
585
if (!m_UsingImplicitSignature)
581
586
{
@@ -597,7 +602,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
605
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
606
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
607
+
". Use GetStatus() to check the pipeline state status.");
601
608
602
609
if (!m_UsingImplicitSignature)
603
610
{
@@ -618,7 +625,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
628
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
629
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
630
+
". Use GetStatus() to check the pipeline state status.");
622
631
623
632
if (!m_UsingImplicitSignature)
624
633
{
@@ -641,7 +650,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
641
650
IResourceMapping* pResourceMapping,
642
651
BIND_SHADER_RESOURCES_FLAGS Flags) overridefinal
643
652
{
644
-
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
653
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
654
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
655
+
". Use GetStatus() to check the pipeline state status.");
645
656
646
657
if (!m_UsingImplicitSignature)
647
658
{
@@ -655,7 +666,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
669
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
670
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
671
+
". Use GetStatus() to check the pipeline state status.");
659
672
660
673
if (!m_UsingImplicitSignature)
661
674
{
@@ -669,7 +682,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
685
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
686
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
687
+
". Use GetStatus() to check the pipeline state status.");
673
688
674
689
if (pDstPipeline == nullptr)
675
690
{
@@ -697,15 +712,19 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
697
712
/// Implementation of IPipelineState::GetResourceSignatureCount().
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
715
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
716
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
717
+
". Use GetStatus() to check the pipeline state status.");
701
718
702
719
return m_SignatureCount;
703
720
}
704
721
705
722
/// Implementation of IPipelineState::GetResourceSignature().
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
725
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
726
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
727
+
". Use GetStatus() to check the pipeline state status.");
709
728
710
729
VERIFY_EXPR(Index < m_SignatureCount);
711
730
return m_Signatures[Index];
@@ -714,7 +733,9 @@ class PipelineStateBase : public DeviceObjectBase<typename EngineImplTraits::Pip
714
733
/// Implementation of IPipelineState::IsCompatibleWith().
715
734
virtualbool DILIGENT_CALL_TYPE IsCompatibleWith(const IPipelineState* pPSO) constoverride// May be overridden
716
735
{
717
-
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name, "' is not ready. Use GetStatus() to check the pipeline state status.");
736
+
DEV_CHECK_ERR(m_Status.load() == PIPELINE_STATE_STATUS_READY, "Pipeline state '", this->m_Desc.Name,
737
+
"' is expected to be Ready, but its actual status is ", GetPipelineStateStatusString(m_Status.load()),
738
+
". Use GetStatus() to check the pipeline state status.");
718
739
719
740
DEV_CHECK_ERR(pPSO != nullptr, "pPSO must not be null");
0 commit comments