Comments (1)
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)
- Generating MSL shaders programmatically HOT 3
- error: case value not in enumerated type '```boost::wave::token_id```' HOT 1
- Project doesn't respect cmake's standard variable BUILD_SHARED_LIBS
- "flatc not installed. Using pre-generated flatbuffers." should be an error, not a warning HOT 3
- Congigure fails when MSL_SHARED=ON and SPIRV_TOOLS_BUILD_STATIC=OFF HOT 1
- error: variable 'line' set but not used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modularshaderlanguage.