Git Product home page Git Product logo

spirv-tutor's Introduction

SPIR-V Tutorials

This is a repository of SPIR-V tutorials starting from the very basics. It is expected that the reader is familiar with basics of Vulkan GLSL.

This is not an officially supported Google product.

Initial Setup

These tutorials are currently only supported on Linux. Please run ./scripts/setup for initial setup. It is expected that spirv-as and spirv-val are installed on the system (usually in a spirv-tools package). Additionally, it is recommended to have the highlight command installed (from a package with the same name).

How to Follow the Tutorials

Navigate to the directory of each tutorial and follow the instructions in the README.md there. The tutorial directories are tagged with a number to indicate the intended order, for example:

01 - Introduction to SPIR-V/
02 - My First Change/
03 - My First Variable/

In the tutorials, README.md will generally introduce a new set of SPIR-V instructions and include an exercise to modify a provided SPIR-V by hand and verify the results. Solutions are provided, but it's strongly recommended not to be consulted until the exercise is complete.

Warning: passively reading the tutorials will quickly become boring. Do get your hands dirty.

When opening the SPIR-V files, it is recommended to enable some syntax highlighting for readability. With vim for example, you can install this excellent plugin, otherwise set ft=lisp is an improvement over no highlighting.

Troubleshooting

If issues with highlight are encountered, edit ./scripts/test_spirv:

  • Try changing xterm256 to ansi if your terminal is not an XTERM.
  • Get rid of the highlight path and live with monochrome GLSL.

spirv-tutor's People

Contributors

shabbyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spirv-tutor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.