Git Product home page Git Product logo

Comments (10)

antiagainst avatar antiagainst commented on April 28, 2024

Hey @seivan, that sounds good to me! But I'm not familiar with iOS and its development. So contributions welcomed! :)

from shaderc-rs.

seivan avatar seivan commented on April 28, 2024

So the initial question would be, can shaderc (and all its dependency) run on arm?

from shaderc-rs.

antiagainst avatar antiagainst commented on April 28, 2024

Well, Shaderc can be used for runtime compilation on Android: https://developer.android.com/ndk/guides/graphics/shader-compilers#runtime

from shaderc-rs.

seivan avatar seivan commented on April 28, 2024

@antiagainst So the issue here is to get the Shaderc project to build for arm/iOS - is that something that's related to this crate?

Edit so Shaderc and all its dependencies would have to build for arm. My initial issue was not having access to glslang at runtime.

from shaderc-rs.

antiagainst avatar antiagainst commented on April 28, 2024

AFAICT, Shaderc right now does not support compilation on iOS, or no one has tried it. To make it (the C++ project) compile on iOS is not something that should go into this crate. But this crate itself (the Rust wrapper) also lacks iOS support.

from shaderc-rs.

bschwind avatar bschwind commented on April 28, 2024

@seivan I know this is an older issue, but I believe I was able to compile and use this crate for ios via Rendy and gfx-hal.

See the PR for example code here:

https://github.com/amethyst/rendy/pull/218/files

There were some issues building this crate so see the README I included there.

from shaderc-rs.

seivan avatar seivan commented on April 28, 2024

@bschwind I've already managed to get it to work but I had to change a lot of the upstream dependencies (like glslang) - did you manage to make it work without doing so?

from shaderc-rs.

bschwind avatar bschwind commented on April 28, 2024

I had to modify a CMakeCache.txt file to change the CMAKE_OSX_SYSROOT environment variable to point to an iOS SDK instead of the MacOS one.

I didn't need to make any other changes. It built and ran on iOS so I'm assuming it all went well.

from shaderc-rs.

simlay avatar simlay commented on April 28, 2024

This looks like it will fix this issue rust-lang/cmake-rs#88

from shaderc-rs.

antiagainst avatar antiagainst commented on April 28, 2024

Closing given #83 is landed.

from shaderc-rs.

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.