![]() |
Vulkan SDK for Android 1.1.1
Mali Developer Center
|
The asset manager reads data from a platform specific location. This class is used internally to load binary data from disk. More...
#include <asset_manager.hpp>
Public Member Functions | |
template<typename T > | |
Result | readBinaryFile (std::vector< T > *pOutput, const char *pPath) |
Reads a binary file into typed container. More... | |
virtual Result | readBinaryFile (const char *pPath, void **ppData, size_t *pSize) |
Reads a binary file as a raw blob. More... | |
The asset manager reads data from a platform specific location. This class is used internally to load binary data from disk.
Definition at line 34 of file asset_manager.hpp.
|
inline |
Reads a binary file into typed container.
[out] | pOutput | Output vector to write data into. The vector will be cleared before adding any data to the container. |
[out] | pPath | The path to read. |
Definition at line 45 of file asset_manager.hpp.
|
virtual |
Reads a binary file as a raw blob.
pPath | The path of the asset. | |
[out] | ppData | allocated output data. Must be freed with free() . |
[out] | pSize | The size of the allocated data. |
Reimplemented in MaliSDK::LinuxAssetManager, and MaliSDK::AndroidAssetManager.
Definition at line 28 of file asset_manager.cpp.