mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Remove unnecessary D3DCOMPILE_DEBUG_NAME_FOR_SOURCE flag
* Causes errors on D3DCompile versions that don't support it.
This commit is contained in:
@@ -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) != "")
|
||||
{
|
||||
|
||||
@@ -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) != "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user