Closed rsepassi closed 4 months ago
This is currently a known problem when an "internal" SPIRVCross error happens, normally SPIRVCross throws a C++ exception with error information, but without exceptions enabled it just panics without a useful error message when it encounters a problem.
In the storage-buffer branch I'm currently working on I have fixed this problem, but that's not merged yet into main (hopefully 'soon-ish' though). There I have enabled C++ exception and try-catch anything coming out of SPIRVCross and convert the exception into an error message (https://github.com/floooh/sokol-tools/blob/dade247a89c9b1a3e91e8c511d58dd3989d86928/src/shdc/spirvcross.cc#L497-L499).
If possible I would prefer to not cherry-pick this change into master because I changed the entire source code structure in that branch.
PS: let me check what error you're getting, one sec...
This is the SPIRVCross error (I guess you'll need to change the utexture2D into a regular texture2D), or maybe use something else than texture() to load the texture content, maybe textureFetch? I haven't tested this stuff yet though, expect some bumpiness...
SPIRVCross exception: Sampling non-float textures is not supported in HLSL SM < 6.7.
Works fine when slang is
glsl300es
ormetal_macos
. The abort is hit on both Linux and Mac. The debug dump didn't show anything immediately obvious to me (i.e. no reported errors).shader.glsl
:By the way, love this project and
sokol_*
. Thank you!