-
Notifications
You must be signed in to change notification settings - Fork 18
Single-file header to support SPIR-V and HLSL on various backends
License
libsdl-org/SDL_gpu_shadercross
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SDL_gpu_shadercross This is a library for translating shaders to different formats, intended for use with SDL's GPU API. It takes SPIRV or HLSL as the source and outputs DXBC, DXIL, SPIRV, MSL, or HLSL. This library can perform runtime translation and conveniently returns compiled SDL GPU shader objects from HLSL or SPIRV source. This library also provides a command line interface for offline translation of shaders. For SPIRV translation, this library depends on SPIRV-Cross: https://github.com/KhronosGroup/SPIRV-Cross spirv-cross-c-shared.dll (or your platform's equivalent) can be obtained in the Vulkan SDK: https://vulkan.lunarg.com/ For compiling to DXIL, dxcompiler.dll and dxil.dll (or your platform's equivalent) are required. DXIL dependencies can be obtained here: https://github.com/microsoft/DirectXShaderCompiler/releases It is strongly recommended that you ship SPIRV-Cross and DXIL dependencies along with your application. For compiling to DXBC, d3dcompiler_47 is shipped with Windows. Other platforms require vkd3d-utils. This library is under the zlib license, see LICENSE.txt for details.
About
Single-file header to support SPIR-V and HLSL on various backends
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published