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.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Brian Ho 47c303ddc5 Count shaded fragments via Vulkan query and manual counting pirms 6 gadiem
.gitignore Initial commit forked from brkho/triangle pirms 6 gadiem
Makefile Initial commit forked from brkho/triangle pirms 6 gadiem
README.md Initial commit forked from brkho/triangle pirms 6 gadiem
occlusion.cc Count shaded fragments via Vulkan query and manual counting pirms 6 gadiem
occlusion.frag Count shaded fragments via Vulkan query and manual counting pirms 6 gadiem
occlusion.vert Count shaded fragments via Vulkan query and manual counting pirms 6 gadiem

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