Giter Club home page Giter Club logo

Comments (1)

akb825 avatar akb825 commented on May 30, 2024

Looking at GLSLify, the modules seem to be at a different level. GLSLify uses modules at the code level, allowing you to import the modules for writing your code. By contrast, MSL uses modules at the final output level: it unifies the different shader stages into pipelines, and allows for multiple pipelines to be combined into a single logical package.

Given how they are fundamentally different, I don't see how they would be able to work with each-other. It is possible to extract the GLSL (assuming you're using a GLSL target) from a compiled MSL module, but they will be fully-contained shaders, including the main() function. My guess is that this won't play nicely with GLSLify. Similarly, while MSL supports importing code through a C pre-processor, my guess is that the GLSLify modules aren't set up so they could just be #included into the source you're writing. Additionally, since the output of GLSLify appears to be a fully-contained GLSL file, that wouldn't really work with MSL since it adds extra syntax to define shader pipelines.

I hope this answers your question.

from modularshaderlanguage.

Related Issues (7)

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.