Code Monkey home page Code Monkey logo

iggpu's People

Contributors

sessamekesh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

gmh5225 onurbul

iggpu's Issues

Unexpected behavior with c-strings in AppBase::Create

Embind methods to give std::string parameters, but AppBase::Create expects a c-string.

Instead, either:

  • Pass along std::string the whole way, or
  • Create a copy of the c-string that is passed along and deleted in final callback.

C-strings referencing values that are cleaned up on the stack (e.g. a std::string parameter for a create_app embind method) end up pointing to garbage and ruining canvas reference stuff.

Move over useful pre-isolation iggpu and/or DawnUtils methods to iggpu

Dawn has a bunch of useful utility methods that are specific to Dawn here: https://dawn.googlesource.com/dawn/+/refs/heads/main/src/dawn/utils/

iggpu is meant to be an abstraction over Dawn (native) or WebGPU for cross-platform builds including WASM targets.

Most of these are things that existed in pre-isolation iggpu versions (sanctify-game, sanctify-min projects) but I just haven't brought over yet. The Dawn implementations are generally similar, even without igcore::PodVector etc. types from previous iggpu iterations.

Especially helpful methods to bring over (or at least something similar):

  • CreateBufferFromData
    • Also add a templated override that takes std::vector and auto-infers size
    • And include an optional parameter for "label"
  • MakePipelineLayout and similar for MakeBindGroupLayout
    • Maybe something fancier with an initializer list input instead of an already constructed std::vector to allow you to do fancy initializer magic - per previous iggpu.

Move over ThinUbo

Of the WebGPU utilities, I think this is the only one that actually makes sense to move over. InstanceBuffer is nice and I use it all the time, but it's clunky and not sufficiently generally useful for this library.

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.