Explorar o código

Add -HV 2016 when compiling through D3DCompiler bridge (#2013)

Tex Riddell %!s(int64=6) %!d(string=hai) anos
pai
achega
4e9a01f631
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tools/clang/tools/d3dcomp/d3dcomp.cpp

+ 2 - 0
tools/clang/tools/d3dcomp/d3dcomp.cpp

@@ -104,6 +104,8 @@ HRESULT CompileFromBlob(IDxcBlobEncoding *pSource, LPCWSTR pSourceName,
     // We don't implement this:
     // We don't implement this:
     //if(Flags1 & D3DCOMPILE_PARTIAL_PRECISION) arguments.push_back(L"/Gpp");
     //if(Flags1 & D3DCOMPILE_PARTIAL_PRECISION) arguments.push_back(L"/Gpp");
     if(Flags1 & D3DCOMPILE_RESOURCES_MAY_ALIAS) arguments.push_back(L"/res_may_alias");
     if(Flags1 & D3DCOMPILE_RESOURCES_MAY_ALIAS) arguments.push_back(L"/res_may_alias");
+    arguments.push_back(L"-HV");
+    arguments.push_back(L"2016");
 
 
     IFR(CreateCompiler(&compiler));
     IFR(CreateCompiler(&compiler));
     IFR(compiler->Compile(pSource, pSourceName, pEntrypointW, pTargetProfileW,
     IFR(compiler->Compile(pSource, pSourceName, pEntrypointW, pTargetProfileW,