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 {
|
} else {
|
||||||
const auto vertex_path = info.shaders.vertex_src.as_path().string() + ".msl";
|
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) {
|
if(file != std::nullopt) {
|
||||||
vertex_src = file->read_as_string();
|
vertex_src = file->read_as_string();
|
||||||
} else {
|
} else {
|
||||||
|
@ -451,7 +451,7 @@ GFXPipeline* GFXMetal::create_graphics_pipeline(const GFXGraphicsPipelineCreateI
|
||||||
} else {
|
} else {
|
||||||
const auto fragment_path = info.shaders.fragment_src.as_path().string() + ".msl";
|
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) {
|
if(file != std::nullopt) {
|
||||||
fragment_src = file->read_as_string();
|
fragment_src = file->read_as_string();
|
||||||
} else {
|
} else {
|
||||||
|
@ -624,7 +624,7 @@ GFXPipeline* GFXMetal::create_compute_pipeline(const GFXComputePipelineCreateInf
|
||||||
} else {
|
} else {
|
||||||
const auto compute_path = info.compute_src.as_path().string() + ".msl";
|
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) {
|
if(file != std::nullopt) {
|
||||||
compute_src = file->read_as_string();
|
compute_src = file->read_as_string();
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue