diff options
author | dan sinclair <dj2@everburning.com> | 2019-02-07 15:26:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-07 15:26:45 -0500 |
commit | de7c1aa073f241093e730f6f44e034a73cb58d02 (patch) | |
tree | 3aecd33992cbd793dff8664bc3b783ff4c89e49a /include | |
parent | 43c8b2d2e187c7c81ac47d63314ee019191c5cd6 (diff) | |
download | amber-de7c1aa073f241093e730f6f44e034a73cb58d02.tar.gz |
Allow setting SPIR-V target environment. (#273)
This CL adds an option to the amber sample application to set the SPIR-V
target environment. The environment name matches the names accepted by
the other spirv-tools applications.
The environment is set into the script and used by the shader compiler.
Diffstat (limited to 'include')
-rw-r--r-- | include/amber/amber.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/amber/amber.h b/include/amber/amber.h index c4ab3a0..56de8d1 100644 --- a/include/amber/amber.h +++ b/include/amber/amber.h @@ -57,6 +57,8 @@ struct Options { EngineType engine; /// Holds engine specific configuration. Ownership stays with the caller. EngineConfig* config; + /// The SPIR-V environment to target. + std::string spv_env; /// Lists the buffers to extract at the end of the execution std::vector<BufferInfo> extractions; }; |