[tests] Fix compiler error with the DxbcModuleInfo struct

This commit is contained in:
Philip Rebohle 2018-06-23 18:28:22 +02:00
parent dd51437584
commit a6c2080156
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ int WINAPI WinMain(HINSTANCE hInstance,
DxbcReader reader(dxbcCode.data(), dxbcCode.size());
DxbcModule module(reader);
Rc<DxvkShader> shader = module.compile(DxbcOptions(), ifileName);
DxbcModuleInfo moduleInfo;
moduleInfo.options = DxbcOptions();
Rc<DxvkShader> shader = module.compile(moduleInfo, ifileName);
std::ofstream ofile(str::fromws(argv[2]), std::ios::binary);
shader->dump(ofile);
return 0;