diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 14:50:00 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-23 14:50:00 -0500 |
| commit | f57ed9da22d9bd258db541e4537006727bc872ad (patch) | |
| tree | 080ad437583c4db995901a2d766767a338609935 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | 867d922f09b86583859796a174df89555fb32da8 (diff) | |
d3d12: a shader path that is not UTF-8 never throws, and LEONIDA_SHADERS is absolute
- A shader_path.txt that is not UTF-8 no longer throws out of Create*PipelineState: MSVC's STL reports the failed
conversion as std::system_error, not filesystem_error. configured_shader_directory() returns the reason instead,
and DeviceState::library() catches every std::exception, so the "invalid translated shader path" message prints
and the pipeline fails. The reader of the file itself is unchanged.
- A relative LEONIDA_SHADERS no longer follows the current directory: gta6rt makes it absolute at startup, next to
--game-dir and --overlay, and ShaderLibrary::load keeps an absolute folder for the modules it reads later.
Tests: d3d12_shader_path_test (new, Windows, no GPU) and a relative-folder check in shader_library_test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions