Escher is a physically based renderer.
Escher itself is part of any Fuchsia build that includes Scenic, i.e. any build that targets a device with a screen. The Escher examples and tests are built by adding //garnet/packages/examples:escher
and //garnet/packages/tests:escher
to your fx set
invocation.
Escher can also build on Linux. In order to do so, you need to:
sudo apt install libxinerama-dev libxrandr-dev libxcursor-dev libx11-xcb-dev \ libx11-dev mesa-common-dev
sudo apt install nvidia-driver
sudo apt install mesa-vulkan-drivers
export VULKAN_SDK=$FUCHSIA_DIR/prebuilt/third_party/vulkansdk/linux/x86_64 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VULKAN_SDK/lib export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
cd $FUCHSIA_DIR fx set terminal.x64 --with='//garnet/packages/examples:escher,//garnet/packages/tests:escher' --args escher_use_null_vulkan_config_on_host=false
$FUCHSIA_DIR/docs/getting_source.md
for how to set up the fx
tool.terminal
or use a more inclusive package such as //garnet/packages/examples:all
.waterfall
example:fx build host_x64/waterfall && out/default/host_x64/waterfall
fx build host_x64/escher_unittests && out/default/host_x64/escher_unittests