Fix errors in metal backend due to filesystem changes
This commit is contained in:
parent
7a738405cb
commit
cf2cb655dc
1 changed files with 3 additions and 3 deletions
|
@ -418,7 +418,7 @@ GFXPipeline* GFXMetal::create_graphics_pipeline(const GFXGraphicsPipelineCreateI
|
|||
} else {
|
||||
const auto vertex_path = info.shaders.vertex_src.as_path().string() + ".msl";
|
||||
|
||||
auto file = prism::open_file(prism::internal_domain / vertex_path);
|
||||
auto file = prism::open_file(prism::base_domain / vertex_path);
|
||||
if(file != std::nullopt) {
|
||||
vertex_src = file->read_as_string();
|
||||
} else {
|
||||
|
@ -451,7 +451,7 @@ GFXPipeline* GFXMetal::create_graphics_pipeline(const GFXGraphicsPipelineCreateI
|
|||
} else {
|
||||
const auto fragment_path = info.shaders.fragment_src.as_path().string() + ".msl";
|
||||
|
||||
auto file = prism::open_file(prism::internal_domain / fragment_path);
|
||||
auto file = prism::open_file(prism::base_domain / fragment_path);
|
||||
if(file != std::nullopt) {
|
||||
fragment_src = file->read_as_string();
|
||||
} else {
|
||||
|
@ -624,7 +624,7 @@ GFXPipeline* GFXMetal::create_compute_pipeline(const GFXComputePipelineCreateInf
|
|||
} else {
|
||||
const auto compute_path = info.compute_src.as_path().string() + ".msl";
|
||||
|
||||
auto file = prism::open_file(prism::internal_domain / compute_path);
|
||||
auto file = prism::open_file(prism::base_domain / compute_path);
|
||||
if(file != std::nullopt) {
|
||||
compute_src = file->read_as_string();
|
||||
} else {
|
||||
|
|
Reference in a new issue