Skip to content

ShaderPreprocessor doesn't work on android #1306

Open
@richardeakin

Description

@richardeakin

Not a fault of android, just that android doesn't use direct file access like other platforms. Problem is that ShaderPreprocessor tries to directly access files with ifstream( fullFilePath ), instead of getting routed through the android assets mechanisms. I propose we add a std::function based 'filepath resolver' callback that returns either a ci::DataSourceRef or ci::IStreamRef, providing a workable default that uses ci::loadFile but also allows users to override when needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions