Giter Club home page Giter Club logo

wgpu-rust-renderer's People

Contributors

takahirox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wgpu-rust-renderer's Issues

Project status

@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?

Mac Os issue with PBR example

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

The examples crash if you minimize the window.

How to reproduce

  1. $ cargo run --example triangle
  2. Minimize the window
  3. Crashes

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)

Directly load WGSL?

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!

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.