From de7c1aa073f241093e730f6f44e034a73cb58d02 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Thu, 7 Feb 2019 15:26:45 -0500 Subject: 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. --- include/amber/amber.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 extractions; }; -- cgit v1.2.3