GithubHelp home page GithubHelp logo

libvega / vsl Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 7.46 MB

Custom shader language for the Vega graphics library

License: Other

Batchfile 0.65% Shell 1.18% Lua 1.78% C++ 93.11% ANTLR 3.27%

vsl's Introduction

Vega Shader Langauge

Build Status

The Vega Shader Language (VSL) is a custom GPU shading language for the Vega library.

Because Vega utilizes a unique binding model and reduced subset of normal GLSL and SPIR-V features, we've implemented a custom language that matched this specific use case more directly. The resulting syntax should be easy to learn for those already familiar with GLSL or HLSL.

This repository contains the compiler library, which implements the parsing, compilation, and linking of the shaders, as well as the command line compiler tool. The VSL source is first cross-compiled into equivalent GLSL, and is then compiled with the ShaderC library.

A tutorial and spec guide is coming soon.

Acknowledgements

Many thanks to the authors of the following libraries and tools used in VSL:

Premake

  • Website: link
  • License: BSD 3-clause (original) (copy)
  • Description: Project generator allowing cross-platform and cross-compiler C++ projects.

ANTLR4

  • Website: link
  • License: BSD 3-clause (original) (copy)
  • Description: Lexer/Parser generator used to perform the parsing of shader files

shaderc

  • Website: link
  • License: Apache v2 (original) (copy)
  • Description: Compiles the generated GLSL code into SPIR-V modules

These third-party tools and libraries are rehosted under their original licenses. The authors of the Vega library and VSL make no authorship claims.

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.