Code Monkey home page Code Monkey logo

Comments (6)

m-hugo avatar m-hugo commented on July 26, 2024 2

piet-gpu currently has working android support without winit (see android.rs in piet-gpu/piet-gpu) and can be made to work with winit

but since winit's android backend will change soon, I think I'll wait for the next version before adding support

from vello.

eliasnaur avatar eliasnaur commented on July 26, 2024

The Pixel 4 also does not have descriptor indexing. Again, this should be queried at runtime. This issue is considerably more complex, as it requires multiple compilations of k4, and also CPU-side code to deal with the non descriptor indexing case. The local branch just disables images.

In case you haven't seen the option, there's a header define to disable use of descriptor indexing. I use that for Gio.

from vello.

raphlinus avatar raphlinus commented on July 26, 2024

Yes, I've definitely seen the option, and basically what I'm proposing is to compile k4.comp to produce two different .spv's, one with it on and one with it off. The reason I just disabled it in my local branch is simply don't yet have Rust code yet to supply the image in the non descriptor indexing case. The existence of that define is a large step towards making it more compatible, thanks for it!

from vello.

dvc94ch avatar dvc94ch commented on July 26, 2024

any progress on this? the ndk-glue pipe was inspired by the android_native_app_glue distributed with android. the android looper has a blocking api and the pipe can be registered with it. if a channel or atomics where used we'd still have to wake the looper. however it's been a while since I wrote it and my memory is a bit fuzzy.

from vello.

DJMcNab avatar DJMcNab commented on July 26, 2024

For reference on the android backend changing, see rust-windowing/winit#2444

And the big pile of discussion in rust-windowing/winit#2293

It looks like 0.28 isn't coming anytime soon, so this is still blocked.

from vello.

m-hugo avatar m-hugo commented on July 26, 2024

note that it's just a change to the example, I haven't tried the rewrite but both 0.27 and git were working just fine with piet-gpu, I can give you a 0.27 example if anybody cares, you can also just pin a git version with the new backend if you don't want to change the boilerplate after a month

from vello.

Related Issues (20)

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.