Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add runtime HLSL shaders compilation support #149

Open
egorodet opened this issue Feb 9, 2025 · 0 comments
Open

Add runtime HLSL shaders compilation support #149

egorodet opened this issue Feb 9, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@egorodet
Copy link
Member

egorodet commented Feb 9, 2025

Currently Methane Kit supports only build-time shaders compilation with binary byte-code stored in application resources. In some cases it is more convenient to do runtime shaders compilation from HLSL source code using specific set of macro-definitions.

While it is trivial to support runtime compilation of HLSL to DXIL bytecode for DirectX or HLSL to SPIRV bytecode for Vulkan using DXC compiler dynamic library, yet it is more complicated to convert HLSL to Metal shader code and then compile it to Metal bytecode, because it involves additional use of SPIRV-Cross library for conversion from the compiled SPIRV bytecode to Metal shader source code.

@egorodet egorodet added the enhancement New feature or request label Feb 9, 2025
@egorodet egorodet added this to the v0.8 milestone Feb 9, 2025
@egorodet egorodet self-assigned this Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant