takahirox / wgpu-rust-renderer Goto Github PK
View Code? Open in Web Editor NEWA tiny WebGPU renderer written in Rust
License: MIT License
A tiny WebGPU renderer written in Rust
License: MIT License
Can render a frame's yuv file in Browser ?
if can
Please show a demo
@takahirox Hi, any plans to continue on this project? Also I'm interested in wgpu related consulting with funding, can you be up for this?
Hello, I have the following error compiling the pbr example on mac (10.11.6, El Capitan).
Compiling wgpu_rust_renderer v0.0.3 (/Users/da1/Sources/rust/wgpu-rust-renderer)
Finished dev [unoptimized + debuginfo] target(s) in 1m 48s
Running `target/debug/examples/pbr`
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline
Internal error in VERTEX shader: Metal: Compilation failed:
<program source>:20:5: error: unknown type name 'packed_float3'; did you mean 'metal::packed_float3'?
packed_float3 vec3_color;
^~~~~~~~~~~~~
metal::packed_float3
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/A/lib/clang/3.5/include/metal/metal_types.h:88:32: note: 'metal::packed_float3' declared here
typedef packed_vec<float, 3> packed_float3;
^
<program source>:25:7: warning: no previous prototype for function 'd_ggx'
float d_ggx(
^
<program source>:34:7: warning: no previous prototype for function 'v_smith_ggx_correlated_fast'
float v_smith_ggx_correlated_fast(
^
<program source>:44:15: warning: no previous prototype for function 'brdf'
metal::float3 brdf(
^
', /Users/da1/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.11.0/src/backend/direct.rs:2195:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
the examples cube
and rotation
works, although the cube is not positioned in the middle of the screen, but in the bottom right corner of the screen.
The examples crash if you minimize the window.
How to reproduce
$ cargo run --example triangle
The error log
thread 'main' panicked at 'Error in Surface::configure: Both `Surface` width and height must be non-zero. Wait to recreate the `Surface` until the window has non-zero area.', C:\Users\Takahiro\.cargo\git\checkouts\wgpu-53e70f8674b08dd4\c3d9068\wgpu\src\backend\direct.rs:197:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\examples\rotation.exe` (exit code: 101)
I'm looking for something which directly takes WGSL as input and displays the result in a window. Is wgpu-rust-renderer not the correct project for this? I thought at first maybe it was correct, but after looking at the examples, it appears to just use WGSL in the background to render things like cubes and models.
Do you know of a project which would fit my usecase? Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.