Comments (10)
Hey @seivan, that sounds good to me! But I'm not familiar with iOS and its development. So contributions welcomed! :)
from shaderc-rs.
So the initial question would be, can shaderc (and all its dependency) run on arm?
from shaderc-rs.
Well, Shaderc can be used for runtime compilation on Android: https://developer.android.com/ndk/guides/graphics/shader-compilers#runtime
from shaderc-rs.
@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.
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.
@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.
@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.
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.
This looks like it will fix this issue rust-lang/cmake-rs#88
from shaderc-rs.
Closing given #83 is landed.
from shaderc-rs.
Related Issues (20)
- Updating shaderc version HOT 3
- Linking error when building with target-feature=+crt-static HOT 2
- Unable to build on Ubuntu 20.04 LTS - build wants "python" by name, but which one? HOT 3
- Can't find `/usr/lib/libshaderc_shared.so` HOT 1
- Build fails on Windows with Windows store Python HOT 7
- Can Compiler be Send, even Sync? HOT 1
- cannot find native shaderc library on system but Vulkan-SDK is installed
- Cannot find native shaderc library on system HOT 5
- Requesting a patch release 0.8.2 HOT 1
- [Possible Regression] Link failure on `1.67-x86_64-pc-windows-msvc` HOT 1
- shader_stage pragma for task and mesh not available
- Can't build a lib for Windows with MT_StaticRelease
- Failing to build on mac m1
- Includes issue with Rust Nightly
- Lack of Android support HOT 1
- Release a 0.6.3 version ? HOT 2
- README.md: Travis badge links to currently running CI and not last master HOT 1
- mingw-w64-x86_64-ninja compiler errors for MSVC rust cargo build
- Extensions? HOT 1
- error: linking with `link.exe` failed: exit code: 1120 HOT 8
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 shaderc-rs.