gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.41k stars 908 forks source link

Running example 9 will not validate... #2696

Closed gschian0 closed 2 years ago

gschian0 commented 2 years ago

Running Example WGPU09... I get this error

Compiling wgpu_project v0.1.0 (C:\Users\GennaroSchiano\Documents\GitHub\wgpu-step-by-step\wgpu09) Finished dev [unoptimized + debuginfo] target(s) in 2.45s Runningtarget\debug\wgpu_project.exe` [2022-05-27T02:22:22Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default thread 'main' panicked at 'wgpu error: Validation Error

Caused by: In Device::create_render_pipeline note: label = Render Pipeline error matching FRAGMENT shader requirements against the pipeline shader global ResourceBinding { group: 0, binding: 1 } is not available in the layout pipeline layout binding is missing from the pipeline layout`

windows 10 NVIDIA GEFORCE RTX3070 Laptop

any help would be apprectiated! I just purchased the webgpu and rust book... looking forward to learning more!

Bless, Gennaro

cwfitzgerald commented 2 years ago

I don't know that tutorial at all, but if you share your source, we can better help you

CatCode79 commented 2 years ago

By any chance are you referring to this repository? https://github.com/jack1232/wgpu-step-by-step

This is the official wgpu graphics api repo.

cwfitzgerald commented 2 years ago

Closing as stale - if there's anything else we can help you with, please refile an issue or open a discussion.