Questiong about porting shaders to zig
Ziggit
Questiong about porting shaders to zig
Hello, i am attempting to move my shader code from Slang to Zig. however i am unsure of two things, first, how do i compile shaders at runtime? for slang, i have a library that converts Slang code into SPIRV, but i am unsure as to how to do that with zig, wouldn’t that entail shipping the zig compiler as well? there’s also the gpu structs issue, where you need structs on both the CPU and shader side, how would i handle doing that without defining them twice? (i use master version of zig for...
0 comments
No comments yet.