I/O handler.
More...
#include <IEffects.h>
|
| virtual | ~IIOHandler () |
| |
| virtual bool | openFile (const StringView &fileName, std::string &content)=0 |
| | Callback method used to open files.
|
| |
| virtual bool | resolveFile (const StringView &source, const StringView &fileName, std::string &content)=0 |
| | Callback method used to resolve include statements in shader code and get the contents to include.
|
| |
| virtual bool | exists (FileType type, const StringView &fileName)=0 |
| |
| virtual bool | writeBinaryFile (FileType type, const StringView &fileName, const void *content, size_t contentSize)=0 |
| |
| virtual bool | openBinaryFile (FileType type, const StringView &fileName, std::vector< uint8_t > &content)=0 |
| |
| virtual void | pushSearchPaths ()=0 |
| |
| virtual void | addSearchPath (const StringView &path)=0 |
| |
| virtual void | popSearchPaths ()=0 |
| |
◆ FileType
| Enumerator |
|---|
| ShaderDump | |
| ShaderCache | |
| PipelineCache | |
◆ ~IIOHandler()
| virtual Cogs::IIOHandler::~IIOHandler |
( |
| ) |
|
|
inlinevirtual |
◆ addSearchPath()
| virtual void Cogs::IIOHandler::addSearchPath |
( |
const StringView & |
path | ) |
|
|
pure virtual |
◆ exists()
| virtual bool Cogs::IIOHandler::exists |
( |
FileType |
type, |
|
|
const StringView & |
fileName |
|
) |
| |
|
pure virtual |
◆ openBinaryFile()
| virtual bool Cogs::IIOHandler::openBinaryFile |
( |
FileType |
type, |
|
|
const StringView & |
fileName, |
|
|
std::vector< uint8_t > & |
content |
|
) |
| |
|
pure virtual |
◆ openFile()
| virtual bool Cogs::IIOHandler::openFile |
( |
const StringView & |
fileName, |
|
|
std::string & |
content |
|
) |
| |
|
pure virtual |
Callback method used to open files.
- Parameters
-
| fileName | File name of the file that should be opened. |
| content | Reference to a string that should receive the contents of the file. |
◆ popSearchPaths()
| virtual void Cogs::IIOHandler::popSearchPaths |
( |
| ) |
|
|
pure virtual |
◆ pushSearchPaths()
| virtual void Cogs::IIOHandler::pushSearchPaths |
( |
| ) |
|
|
pure virtual |
◆ resolveFile()
| virtual bool Cogs::IIOHandler::resolveFile |
( |
const StringView & |
source, |
|
|
const StringView & |
fileName, |
|
|
std::string & |
content |
|
) |
| |
|
pure virtual |
Callback method used to resolve include statements in shader code and get the contents to include.
- Parameters
-
| source | Name of the source being compiled. This can e.g. be used to lookup include files based on the path of the currently compiling file. |
| fileName | File name of the file that is being resolved. |
| content | Reference to a string that should receive the contents of the file. |
◆ writeBinaryFile()
| virtual bool Cogs::IIOHandler::writeBinaryFile |
( |
FileType |
type, |
|
|
const StringView & |
fileName, |
|
|
const void * |
content, |
|
|
size_t |
contentSize |
|
) |
| |
|
pure virtual |
The documentation for this struct was generated from the following file: