Comments (2)
It's not obvious due to the naming scheme, but SDL_CompileFromSPIRV is provided via the SDL_gpu_shadercross single-header library, which is a satellite library and not part of SDL_Gpu proper. (It used to be part of SDL_Gpu, but we removed it after the maintainers requested that we not rely on any specific external library like SPIRV-Cross. We'll probably end up changing the name to prevent future confusion.)
The only officially-provided way to set up shader data is to use SDL_GpuCreateShader with your shader bytecode data (generated either via offline shader compilers or some runtime shader cross-compilation pipeline). This allows for maximum flexibility for varying shader pipelines and is ultimately what's getting called inside of SDL_CompileFromSPIRV.
from sdl_gpu_examples.
Filed 2 issues at the shadercross repo:
from sdl_gpu_examples.
Related Issues (8)
- ComputeSpriteBatch example triggers presentation mode errors HOT 4
- Use SDL_Surface/LoadBMP for texture loading HOT 1
- Aggressive readback sample HOT 1
- Migrate to SDL/examples/ folder HOT 1
- Establish an official order for the examples HOT 1
- Automating running all tests with all options across all backends supported.
- Add toggle for DrawArraysInstanced
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl_gpu_examples.