LukasBanana / LLGL

Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal
BSD 3-Clause "New" or "Revised" License
2.03k stars 135 forks source link

Failed shader compile crashes #112

Closed duckdoom4 closed 4 months ago

duckdoom4 commented 4 months ago

After the change that removed the native shader class, llgl now crashes if a shader fails to compile. (Eg. Syntax error in the hlsl)

Not sure if you want to support this, but it worked before the change so thought I'd let you know

LukasBanana commented 4 months ago

Added some more fixes and new unit test with f651f05 to prevent this from breaking in the future. Shader and PSO creation should fail gracefully without crashing.