Git Product home page Git Product logo

nshaderc's Introduction

nshaderc

A work-in-progress replacement shader compiler for bgfx. It is not backwards-compatible with the existing bgfx shader compiler.

Goals

  1. To take only standard GLSL as input
  2. To not rely on macros or other hacks for feature support
  3. To generate readable source that matches the original input as closely as possible for easier shader source debugging
  4. To be linkable as a library for runtime shader compilation

Non-goals

  1. To support the DX9, NVN, and PSSL backends
  2. To support legacy compilers or C++ versions
  3. To be backwards-compatibile with the existing bgfx shader compiler

Progress

  • Metal
  • Metal Binary
  • Vulkan
  • OpenGL
  • OpenGL ES
  • DX9
  • DX11
  • DX12

Usage

Run nshaderc --help for a menu of options. To specify the compatibility version, supply the major and minor versions in one integer. For example, for Metal 2.1, use 21, for DirectX Shader Model 5.1, use 51, and for Vulkan 1.3, use 13.

Building

Clone recursive to get all submodules:

git clone https://github.com/Ravbug/nshaderc --depth=1 --recurse-submodules

Then build with cmake:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..

nshaderc's People

Contributors

ravbug avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.