aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Neto <dneto@google.com>2019-07-17 13:17:02 -0400
committerGitHub <noreply@github.com>2019-07-17 13:17:02 -0400
commit982af515b94bcceb91d4ca42b8bcc1b9d4fadd01 (patch)
tree4b6672b6e0e49622577d56ae2e728dca88ccf36a /include
parent7da9603246a09072b857a32b73db0dd88f85a4ae (diff)
downloadamber-982af515b94bcceb91d4ca42b8bcc1b9d4fadd01.tar.gz
Specify target version for GLSL compilation (#582)
Specify target version for GLSL compilation Fixes #549
Diffstat (limited to 'include')
-rw-r--r--include/amber/amber.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/amber/amber.h b/include/amber/amber.h
index 2b14475..6c8835a 100644
--- a/include/amber/amber.h
+++ b/include/amber/amber.h
@@ -90,6 +90,14 @@ struct Options {
/// Holds engine specific configuration. Ownership stays with the caller.
EngineConfig* config;
/// The SPIR-V environment to target.
+ /// E.g. "spv1.0", "spv1.3", "vulkan1.0", "vulkan1.1spv1.4".
+ /// If a Vulkan environment, uses the highest version of SPIR-V required
+ /// to be supported by that Vulkan environment. For SPIR-V 1.4 in
+ /// Vulkan, use "vulkan1.1spv1.4".
+ /// If a SPIR-V environment is specified, assume the lowest version
+ /// of Vulkan that requires support for that version of SPIR-V.
+ /// Shader compilers may limit the list of supported environments.
+ /// If empty, a default of "spv1.0" is used.
std::string spv_env;
/// Lists the buffers to extract at the end of the execution
std::vector<BufferInfo> extractions;