Binary that renders a triangle using Vulkan, scans the resulting image to a PNG, and makes an occlusion query to determine the number of fragments shaded. To be used in developing Turnip.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian Ho 0dc5e009a1 Add a depth buffer 5 vuotta sitten
.gitignore Initial commit forked from brkho/triangle 5 vuotta sitten
Makefile Patch triangle fixes into occlusion 5 vuotta sitten
README.md Initial commit forked from brkho/triangle 5 vuotta sitten
occlusion.cc Add a depth buffer 5 vuotta sitten
occlusion.frag Add another triangle for occlusion 5 vuotta sitten
occlusion.vert Add a depth buffer 5 vuotta sitten

README.md

Vulkan occlusion query demo

Overview

This repo contains the source for an applicaiton that renders a triangle using Vulkan, saves the output as a PNG, and outputs the number of shaded fragments via an occlusion query. This applicaiton is used to debug turnip occlusion queries on Chrome OS.

Instructions

  • Enter the CrOS chroot and set up the boards you want to test against (setup_board --board=${BOARD}).
  • Emerge Vulkan, mesa, and libpng to the device under test (emerge vulkan-loader media-libs/mesa libpng && cros deploy ${IP_ADDR} ${PACKAGES}).
  • make shaders
  • target={local, atlas (i915), cheza (adreno)} make