Binary that renders a triangle using Open GL, scans the resulting image to a PNG, and makes an occlusion query to determine the number of fragments shaded. To be used as reference when developing Turnip.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Brian Ho e01c8bfa36 Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
.gitignore Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
Makefile Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
README.md Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
occlusion.cc Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
occlusion.frag Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前
occlusion.vert Implement a simple GL program that draws 2 triangles with a depth buffer 5 年前

README.md

Open GL occlusion query demo

Overview

This repo contains the source for an applicaiton that renders triangles using Open GL, saves the output as a PNG, and outputs the number of shaded fragments via an occlusion query. This applicaiton is used as a reference for implementing occlusion queries for Vulkan on Turnip.

Instructions

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