Code Monkey home page Code Monkey logo

Comments (2)

TheSpydog avatar TheSpydog commented on August 27, 2024

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.

flibitijibibo avatar flibitijibibo commented on August 27, 2024

Filed 2 issues at the shadercross repo:

from sdl_gpu_examples.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.