summaryrefslogtreecommitdiff
path: root/chromium/gpu/vulkan/features.gni
blob: edfbba99f8f8df7dc2d3cdd3659d4b79f5d2e78f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/ui.gni")

# Features used by targets inside and outside of |gpu/vulkan|.
# For details see declare_args() in build/config/BUILDCONFIG.gn.
declare_args() {
  # Enable experimental vulkan backend.
  enable_vulkan =
      is_linux || is_chromeos || is_android || is_fuchsia || is_win || is_apple

  # Enable swiftshader vulkan. Disabling it can save build time, however
  # --use-vulkan=swiftshader and some tests which use swiftshader vulkan will
  # not work.
  enable_swiftshader_vulkan = true
}