Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t> 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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ bool PostprocessingWithVgf::prepare(const vkb::ApplicationOptions &options)

VgfData PostprocessingWithVgf::load_vgf(const std::string &vgf_file_path)
{
std::vector<uint8_t> 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)
{
Expand Down