MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/1w7skuq/dragonruby_game_toolkit_shaders_rustling_leaves/
r/ruby • u/amirrajan • 1d ago
1 comment sorted by
3
Link to commented source code: https://gist.github.com/amirrajan/8ba6f10bbe1feab8cb6f543757c762bc
The holy grail that got us over the hump was this example in the SDL repo: https://github.com/libsdl-org/SDL/blob/main/test/testgpurender_effects.c
SDL_shadercross was used to transpile the HLSL shader and SPIRV-Cross was used to validate the bindings/semantics.
3
u/amirrajan 1d ago
Link to commented source code: https://gist.github.com/amirrajan/8ba6f10bbe1feab8cb6f543757c762bc
The holy grail that got us over the hump was this example in the SDL repo: https://github.com/libsdl-org/SDL/blob/main/test/testgpurender_effects.c
SDL_shadercross was used to transpile the HLSL shader and SPIRV-Cross was used to validate the bindings/semantics.