Comments (6)
Are you using emu_core
with the glsl-compile
feature enabled?
[dependencies.emu_core]
version = "0.1.1"
features = ["glsl-compile"]
from emu.
Does code from the examples
directory work though? I always seem to be messing up the import stuff. It looks like I once again have multiple copies of a crate or something.
I'll try to take a look at what might be wrong soon.
from emu.
I think it's because the readme example assumes that the futures
is included as a dependency but doesn't state that. If you add futures = "0.3.5"
to your Cargo.toml, that should fix the errors about futures
from emu.
However, after fixing the dependency in Cargo.toml, I ran in to the following error with the example in the readme
error[E0277]: the trait bound `emu_core::compile_impls::GlslCompile: emu_core::compile::CompileToSpirv<std::string::String, _>` is not satisfied
--> src\bin\main.rs:23:11
|
23 | let c = compile::<String, GlslCompile, _, GlobalCache>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `emu_core::compile::CompileToSpirv<std::string::String, _>` is not implemented for `emu_core::compile_impls::GlslCompile`
|
::: C:\Users\demmel\.cargo\registry\src\github.com-1ecc6299db9ec823\emu_core-0.1.1\src\compile.rs:191:28
|
191 | pub fn compile<I: Hash, U: CompileToSpirv<I, P>, P, C: Cache>(
| -------------------- required by this bound in `emu_core::compile::compile`
|
= help: the following implementations were found:
<emu_core::compile_impls::GlslCompile as emu_core::compile::CompileToSpirv<emu_core::compile_impls::Glsl, std::vec::Vec<u32>>>
from emu.
Yeah, that was part of my issue at first. Turns out the error above was that I needed to replace String
with Glsl
. Everything is working well now.
from emu.
Also, the example in README.md
has fn main
defined twice. You want to rename the first occurrence to fn do_some_stuff
.
from emu.
Related Issues (20)
- README instructions have various issues HOT 4
- Benchmarks HOT 3
- Benchmarks + against WebGPU
- Compiling error HOT 8
- Add badges to readme.md HOT 2
- Work group sizes greater than 32 don't work on Intel integrated GPU
- Important internal optimizations, potential bug
- Implementing more traits for `DeviceBox`
- Questions regarding the project HOT 1
- Logo is an ostrich not an emu HOT 1
- Unable to run on Ubuntu 20.04 due to python command HOT 1
- Rustdoc documentation search bar does not work
- coreaudio-sys AudioUnit compile error on Windows & Linux HOT 2
- em compilation fails, traits not implemented, and some missing imports? HOT 2
- Khronos ML summit
- `.finish()` stage of the shader compilation segfaults on NVIDIA Vulkan driver HOT 1
- Example panics at runtime (`COPY_DST` flag) HOT 4
- How to pass a 2D array of floats? HOT 2
- Current Project Status Update? HOT 2
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 emu.