Code Monkey home page Code Monkey logo

Comments (1)

bkaradzic avatar bkaradzic commented on May 12, 2024

Agree, it's pretty confusing... Directories should be more organized as - (glsl21-osx, glsl31-windows, gles3-android, gles2-ios, etc). The reason why platform exist is to add ability to add platform specific code for shaders. For example if you have specific platform that has some driver bug (or you doing performance optimization) you would want to create single source code that has platform #ifdef but to generate completely different shaders for each platform. Current organization is just for examples, good starting point, but not how your specific use case would be.

Fat shaders are good idea, I've considered it, but due to number of possible combinations it might be impractical. I'm more interested into creating intermediate representation (for example something similar TGSI http://people.freedesktop.org/~csimpson/gallium-docs/tgsi.html) that gets translated to native shader code in runtime.

If you're starting with shaders you should use provided makefile for examples until you get more comfortable to switch to your custom build (see: https://github.com/bkaradzic/bgfx/blob/master/premake/shader.mk).

from bgfx.

Related Issues (20)

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.