a2flo / floor

A C++ Compute/Graphics Library and Toolchain enabling same-source CUDA/Host/Metal/OpenCL/Vulkan C++ programming and execution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGL - why no?

acterhd opened this issue · comments

Hello. Why there is no OpenGL backend?
OpenGL have many required extensions.

a) there is OpenGL interop support for the CUDA, OpenCL and Host-Compute backends
b) how exactly would that work in the first place? I might be able to get something like SPIRV-Cross to convert SPIR-V back to GLSL that OpenGL might be able to understand, but right now it's already hard enough to generate SPIR-V that Vulkan can understand. Supporting OpenGL, which is far less capable, would be even harder or impossible for certain features.
c) OpenGL is dead anyways at this point, use Vulkan or Metal when you need graphics, use OpenCL or CUDA when you need compute

You do realize that adding any kind of new backend requires a considerable amount of work, right?
That being said, I might actually add a DirectX 12 backend once Microsoft releases their new LLVM HLSL compiler and LLVM-based shader format, which I can hopefully target.

  • closing this, OpenGL support will be removed after the v0.3 release, DirectX is not happening