diff --git a/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/README.adoc b/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/README.adoc index 31439f2f2..912b9082b 100644 --- a/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/README.adoc +++ b/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/README.adoc @@ -72,11 +72,12 @@ The link:https://github.com/arm/neural-graphics-model-gym[Neural Graphics Model == VGF Loading -Firstly, we load the binary file into memory: +Firstly, we load the binary file into memory, reading it from the app-specific external files directory on Android. [source,cpp,options="nowrap"] ---- -std::vector vgf_buffer = vkb::filesystem::get()->read_file_binary(vgf_file_path); +auto fs = vkb::filesystem::get(); +auto vgf_buffer = fs->read_file_binary(fs->external_storage_directory() / vgf_file_path); ---- We then decode the headers and validate them: diff --git a/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/postprocessing_with_vgf.cpp b/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/postprocessing_with_vgf.cpp index def9d8df9..e94c8cdc2 100644 --- a/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/postprocessing_with_vgf.cpp +++ b/samples/extensions/tensor_and_data_graph/postprocessing_with_vgf/postprocessing_with_vgf.cpp @@ -153,7 +153,8 @@ bool PostprocessingWithVgf::prepare(const vkb::ApplicationOptions &options) VgfData PostprocessingWithVgf::load_vgf(const std::string &vgf_file_path) { - std::vector vgf_buffer = vkb::filesystem::get()->read_file_binary(vgf_file_path); + auto fs = vkb::filesystem::get(); + auto vgf_buffer = fs->read_file_binary(fs->external_storage_directory() / vgf_file_path); if (vgf_buffer.size() == 0) {