mirror of
https://github.com/rt64/rt64.git
synced 2025-03-14 13:21:24 +00:00
Shader cache dumping fix, removed SM 5.1 from supported models.
This commit is contained in:
parent
64b9e166f7
commit
036abf55f1
@ -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];
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user