Remove unnecessary D3DCOMPILE_DEBUG_NAME_FOR_SOURCE flag

* Causes errors on D3DCompile versions that don't support it.
This commit is contained in:
baldurk
2020-01-07 10:23:47 +00:00
parent bbd2a4ecb0
commit 353b8d8d27
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ bool D3D12DebugManager::CreateMathIntrinsicsResources()
" }\n}\n";
ID3DBlob *csBlob = NULL;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS | D3DCOMPILE_DEBUG_NAME_FOR_SOURCE;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS;
if(m_pDevice->GetShaderCache()->GetShaderBlob(csProgram.c_str(), "main", flags, "cs_5_0",
&csBlob) != "")
{
+2 -2
View File
@@ -593,7 +593,7 @@ bool D3D12DebugAPIWrapper::CalculateSampleGather(
// Create VS/PS to fetch the sample
ID3DBlob *vsBlob = NULL;
ID3DBlob *psBlob = NULL;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS | D3DCOMPILE_DEBUG_NAME_FOR_SOURCE;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS;
if(m_pDevice->GetShaderCache()->GetShaderBlob(vsProgram.c_str(), "main", flags, "vs_5_0",
&vsBlob) != "")
{
@@ -1171,7 +1171,7 @@ void ExtractInputsPS(PSInput IN, float4 debug_pixelPos : SV_Position, uint prim
// Create pixel shader to get initial values from previous stage output
ID3DBlob *psBlob = NULL;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS | D3DCOMPILE_DEBUG_NAME_FOR_SOURCE;
UINT flags = D3DCOMPILE_DEBUG | D3DCOMPILE_WARNINGS_ARE_ERRORS;
if(m_pDevice->GetShaderCache()->GetShaderBlob(extractHlsl.c_str(), "ExtractInputsPS", flags,
"ps_5_0", &psBlob) != "")
{