Skip to content

Commit

Permalink
D3D12 Shader Cache force use of DXC internal validator
Browse files Browse the repository at this point in the history
Prevents DXC loading dxil.dll
  • Loading branch information
Zorro666 committed Oct 26, 2024
1 parent c5e9f4a commit 0b5527d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions renderdoc/driver/d3d12/d3d12_shader_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ rdcstr D3D12ShaderCache::GetShaderBlob(const char *source, const char *entry,
uint32_t flags = DXBC::DecodeFlags(compileFlags) & ~D3DCOMPILE_NO_PRESHADER;
rdcarray<rdcwstr> argsData;
DXBC::EncodeDXCFlags(flags, argsData);
argsData.push_back(L"-select-validator internal");
rdcarray<LPCWSTR> arguments;
for(const rdcwstr &arg : argsData)
arguments.push_back(arg.c_str());
Expand Down

0 comments on commit 0b5527d

Please sign in to comment.