Git Product home page Git Product logo

glsl2spirv's Introduction

GLSL to SPIR-V converter

Simple converter from GLSL to SPIR-V (syntax as specified by Khronos Group). Made for personal educational purposes.

Build

Compilation is only tested on Linux. Windows might work, provided you change the "OSDependent"-section of the LIB_DIRS variable in the Makefile.

The converter builds on the two projects SPIRV-Tools and glslang. These are not included in this project and must be built separately. In addition, a Vulkan SDK is necessary at the moment (might change).

Before building, ensure all the five variables in the Makefile (GLSLANG_ROOT, GLSLANG_BIN, SPIRV_TOOLS_ROOT, SPIRV_TOOLS_BIN and VULKAN_ROOT) are set to values appropriate to your system. Some explanations are provided in the file. Then run

$ make

and you should receive a brand new binary file glsl2spirv. You may now convert any number of GLSL source files with

./glsl2spirv source1.vert source2.frag (...)

The results are shown in terminal.

Note that all shader files must have corresponding file suffixes (.vert, .frag, .comp etc.).

glsl2spirv's People

Contributors

thevaffel avatar

Stargazers

 avatar

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.