Registry / utility / sdl3-shadercross

sdl3-shadercross

JSON →
library3.0.0-preview1vcpkgunverified

Library for translating shaders between SPIRV, HLSL, DXBC, DXIL, MSL, and other formats for SDL's GPU API.

vcpkg install sdl3-shadercross
INSTALL
IMPORT
SIG · SDL3-SHADERCROSS
S
sdl3-shadercross
utilitycppv3.0.0-preview1
harness data pending
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.
fix
Ensure 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.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

sdl3-shadercross — pip install sdl3-shadercross · libregistry