blob: ff7cdcd647954a6d5acb452cd68b486dda75520c [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# Using Vulkan on host (i.e. Linux) is an involved affair that involves
# downloading the Vulkan SDK, setting environment variables, and so forth...
# all things that are difficult to achieve in a CQ environment. Therefore,
# by default we use a stub implementation of Vulkan which fails to create a
# VkInstance. This allows everything to build, and also allows running Escher
# unit tests which don't require Vulkan.
escher_use_null_vulkan_config_on_host = true
# Determines whether or not escher will build with the glslang and shaderc
# libraries. When false, these libraries will not be included in the scenic/
# escher binary and as a result shaders will not be able to be compiled at
# runtime. Precompiled spirv code will be loaded into memory from disk instead.
escher_use_runtime_glsl = false
# If true, this enables the |SpirvNotChangedTest| to check if the precompiled
# shaders on disk are up to date and reflect the current shader source code
# compiled with the latest shaderc tools/optimizations. People on the Scenic
# team should build with this flag turned on to make sure that any shader
# changes that were not run through the precompiler have their updated spirv
# written to disk. Other teams and CQ do not need to worry about this flag.
escher_test_for_glsl_spirv_mismatch = false
}