Shader cache dumping fix, removed SM 5.1 from supported models.

This commit is contained in:
Dario 2024-05-26 11:22:31 -03:00
parent 64b9e166f7
commit 036abf55f1
2 changed files with 8 additions and 3 deletions

View File

@ -2926,7 +2926,11 @@ namespace RT64 {
}
// Determine the shader model supported by the device.
# if SM_5_1_SUPPORTED
const D3D_SHADER_MODEL supportedShaderModels[] = { D3D_SHADER_MODEL_6_0, D3D_SHADER_MODEL_5_1 };
# else
const D3D_SHADER_MODEL supportedShaderModels[] = { D3D_SHADER_MODEL_6_0 };
# endif
D3D12_FEATURE_DATA_SHADER_MODEL dataShaderModel = {};
for (uint32_t i = 0; i < _countof(supportedShaderModels); i++) {
dataShaderModel.HighestShaderModel = supportedShaderModels[i];

View File

@ -218,9 +218,10 @@ namespace RT64 {
shaderCache->offlineDumper.stepDumping(shaderDesc, dumperVsBytes, dumperPsBytes);
// Toggle the use of HDR and compile another shader.
shaderDesc.flags.usesHDR = (shaderDesc.flags.usesHDR == 0);
std::make_unique<RasterShader>(shaderCache->device, shaderDesc, uberPipelineLayout, shaderCache->shaderFormat, multisampling, shaderCache->shaderCompiler.get(), shaderVsBytes, shaderPsBytes, useShaderBytes);
shaderCache->offlineDumper.stepDumping(shaderDesc, dumperVsBytes, dumperPsBytes);
ShaderDescription shaderDescAlt = shaderDesc;
shaderDescAlt.flags.usesHDR = (shaderDescAlt.flags.usesHDR == 0);
std::make_unique<RasterShader>(shaderCache->device, shaderDescAlt, uberPipelineLayout, shaderCache->shaderFormat, multisampling, shaderCache->shaderCompiler.get(), shaderVsBytes, shaderPsBytes, useShaderBytes);
shaderCache->offlineDumper.stepDumping(shaderDescAlt, dumperVsBytes, dumperPsBytes);
}
}