Example application for subpasses in Vulkan.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Brian Ho f92d434d39 Add a second subpass that darkens the output of the first 5 年前
.gitignore Add a second subpass that darkens the output of the first 5 年前
Makefile Add a second subpass that darkens the output of the first 5 年前
README.md Initial commit that renders two triangles 5 年前
darken.frag Add a second subpass that darkens the output of the first 5 年前
darken.vert Add a second subpass that darkens the output of the first 5 年前
draw.frag Add a second subpass that darkens the output of the first 5 年前
draw.vert Add a second subpass that darkens the output of the first 5 年前
subpass.cc Add a second subpass that darkens the output of the first 5 年前

README.md

Vulkan subpass demo

Overview

This repo contains the source for a Vulkan applicaiton that renders a triangle in one subpass, and in the next, darkens it. The application then saves the output as a PNG.

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