Currently config.shader_model is not initialized, or initialized to 0. This makes CLon12 choose the highest possible Shader model, currently 6.7. I encountered a case that the driver doesn't support 6.5 (only supports 6.2) so it fails to create d3d12 device. This patch fixes it by inherits shadermodel version from the device.
Currently config.shader_model is not initialized, or initialized to 0. This makes CLon12 choose the highest possible Shader model, currently 6.7. I encountered a case that the driver doesn't support 6.5 (only supports 6.2) so it fails to create d3d12 device. This patch fixes it by inherits shadermodel version from the device.