GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google/spirv-tutor

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
01 - Introduction to SPIR-V
01 - Introduction to SPIR-V
 
 
02 - My First Change
02 - My First Change
 
 
03 - My First Variable
03 - My First Variable
 
 
04 - An Interface Variable
04 - An Interface Variable
 
 
05 - A Useful Shader
05 - A Useful Shader
 
 
06 - A Vector
06 - A Vector
 
 
07 - A Uniform Buffer - Part 1
07 - A Uniform Buffer - Part 1
 
 
08 - A Uniform Buffer - Part 2
08 - A Uniform Buffer - Part 2
 
 
09 - Composite Extraction and Construction
09 - Composite Extraction and Construction
 
 
10 - Arithmetics
10 - Arithmetics
 
 
11 - If Else
11 - If Else
 
 
12 - The Phi Function
12 - The Phi Function
 
 
scripts
scripts
 
 
third_party
third_party
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CODE-OF-CONDUCT.md
CODE-OF-CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

82 stars

Watchers

5 watching

Forks

9 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.