PostProcessing/FX: Support reading shaders from resources

This commit is contained in:
Stenzek
2023-11-23 19:52:28 +10:00
parent 1a79a2f196
commit 7bbf04ab99
7 changed files with 116 additions and 23 deletions

View File

@ -12,6 +12,9 @@
#include <vector>
namespace Host {
/// Returns true if the specified resource file exists.
bool ResourceFileExists(const char* filename);
/// Reads a file from the resources directory of the application.
/// This may be outside of the "normal" filesystem on platforms such as Mac.
std::optional<std::vector<u8>> ReadResourceFile(const char* filename);