开发者

What is the most short way to run your GLSL shader (not compiled yet) from C++?

开发者 https://www.devze.com 2023-02-22 13:08 出处:网络
So what is simple - crossplatform C++ library for compiling and running GLSL shaders from sourceand emulating videocard if needed. Generally I want to give it shader and data and be capable to run it

So what is simple - crossplatform C++ library for compiling and running GLSL shaders from source and emulating videocard if needed. Generally I want to give it shader and data and be capable to run it and get resulting data. Is there any such library/ or described way to use some libs 开发者_如何学JAVAin combo?


Probably the easiest way would be to use a cross-platform OpenGL framework like GLFW with a bit to compile and use a shader (e.g., one I posted in a previous answer). For systems that didn't support OpenGL otherwise, you'd probably want to use Mesa3D.

0

精彩评论

暂无评论...
验证码 换一张
取 消