Lines Matching +full:vulkan +full:- +full:tools
3 Amber is a multi-API shader test framework.
9 * Supports Vulkan graphics API
16 * Shaders can be expressed in binary form (as hex), in SPIR-V assembly, or in a
94 * CMake (version 3.7+ enables automatic discovery of an installed Vulkan SDK)
96 * Python, for fetching dependencies and building Vulkan wrappers
103 ./tools/git-sync-deps
104 mkdir -p out/Debug
106 cmake -GNinja ../..
114 `-DAMBER_ENABLE_SHARED_CRT`.
123 `tools/build-amber-sample.sh`.
130 * Run `./tools/build-amber-sample.sh [build output directory path]`.
140 ./tools/git-sync-deps
142 ./tools/update_build_version.py . samples/ third_party/
143 ./tools/update_vk_wrappers.py . .
149 ${ANDROID_NDK_HOME}/ndk-build -C ../samples NDK_PROJECT_PATH=. NDK_LIBS_OUT=`pwd`/libs NDK_APP_OUT=…
156 APP_ABI := arm64-v8a armeabi-v7a x86 x86_64
162 suitable because it is mounted with a non-executable flag). Also, vulkan layers
164 the `-d` flag to disable Vulkan layers:
171 ./amber_ndk -d <shader-test-files>
181 * AMBER_SKIP_TESTS -- Skip building Amber unit tests
182 * AMBER_SKIP_SAMPLES -- Skip building the Amber sample applications
183 * AMBER_SKIP_SPIRV_TOOLS -- Disable the SPIRV-Tools integration
184 * AMBER_SKIP_SHADERC -- Disable the ShaderC integration
185 * AMBER_SKIP_LODEPNG -- Disable the LodePNG integration
186 * AMBER_USE_DXC -- Enables DXC as a shader compiler
187 * AMBER_USE_LOCAL_VULKAN -- Does not try to find the Vulkan SDK, builds needed
189 * AMBER_USE_CLSPV -- Enables CLSPV as a shader compiler
190 * AMBER_USE_SWIFTSHADER -- Builds Swiftshader so it can be used as a Vulkan ICD
193 cmake -DAMBER_SKIP_TESTS=True -DAMBER_SKIP_SPIRV_TOOLS=True -GNinja ../..
198 DXC can be enabled in Amber by adding the `-DAMBER_USE_DXC=true` flag when
213 Currently the Vulkan and Dawn graphics APIs are supported.
215 ### Using Vulkan as a backend
217 A Vulkan implementation is found by CMake in the following priority order:
222 [Vulkan-Headers][Vulkan-Headers]
226 Vulkan library, or a default of `vulkan` will be used.
228 * If you have CMake 3.7 or later, then the Vulkan implementation will
229 be found from a Vulkan SDK as published by LunarG.
232 * `VULKAN_SDK` should point to the platform-specific SDK directory
240 export VULKAN_SDK=$HOME/vulkan-macos-1.1.85.0/macOS
241 export VK_ICD_FILENAMES=$VULKAN_SDK/etc/vulkan/icd.d/MoltenVK_icd.json
242 export VK_LAYER_PATH=$VULKAN_SDK/etc/vulkan/explicit_layer.d
270 cmake -GNinja -DAMBER_ENABLE_SWIFTSHADER=TRUE ../..
273 ./amber -d -V # Should see SwiftShader listed as device
274 ./amber -d ../../tests/cases/clear.amber
287 The sample app returns a value of 0 on success or non-zero on error. Any issues
290 Run `out/Debug/amber -h` to see a description of the program's command line options.
294 Also the [Vulkan Conformance Test
295 Suite](https://github.com/KhronosGroup/VK-GL-CTS) contains many real-world
297 [external/vulkancts/data/vulkan/amber](https://github.com/KhronosGroup/VK-GL-CTS/tree/master/extern…
301 file. You can disable this by passing `-DAMBER_SKIP_LODEPNG=true` to cmake.
315 [Vulkan-Headers]: https://github.com/KhronosGroup/Vulkan-Headers