Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SDL3_shadercross/SDL_shadercross.h
✓ #include <SDL3_shadercross/SDL_shadercross.h>
Initialize SDL3 ShaderCross with a GPU device.
#include <SDL3_shadercross/SDL_shadercross.h>
#include <SDL3/SDL.h>
int main() {
SDL_Init(SDL_INIT_VIDEO);
SDL_Window *window = SDL_CreateWindow("Test", 640, 480, 0);
SDL_GPUDevice *gpu = SDL_CreateGPUDevice(SDL_GPU_SHADERFORMAT_SPIRV, false, NULL);
SDL_ShaderCross_Init(gpu);
// ... use shader translation ...
SDL_ShaderCross_Quit(gpu);
SDL_DestroyGPUDevice(gpu);
SDL_DestroyWindow(window);
SDL_Quit();
return 0;
}
Debug
Known issues
breakingRequires SDL3 and a GPU device; preview version may have API changes.fixEnsure SDL3 is installed and linked; check for API updates in newer versions.
affects: <=3.0.0-preview1
Upgrade
Version history
3.0.0-preview1latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.