PolyMeilex / PolyMeilex/Neothesia
Wgpu fragment shader failed to compile error on startup
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 115
- Avg merge
- 7h 48m
- Merged PRs (30d)
- 8
Description
Tried to run version 0.4 on Windows 10
Error message:
[INFO wgpu_jumpstart::gpu] Using AMD Radeon HD 7660G (Gl, Preferred Format: Some(Rgba8UnormSrgb))
[ERROR wgpu_hal::gles::device] Shader compilation failed: Fragment shader failed to compile with the following errors:
ERROR: 0:12: error(#236) varying expected: gl_FragCoord
ERROR: error(#273) 1 compilation errors. No code generated
[ERROR wgpu::backend::wgpu_core] Shader translation error for stage ShaderStages(FRAGMENT): Fragment shader failed to compile with the following errors:
ERROR: 0:12: error(#236) varying expected: gl_FragCoord
ERROR: error(#273) 1 compilation errors. No code generated
[ERROR wgpu::backend::wgpu_core] Please report it to https://github.com/gfx-rs/wgpu
[ERROR wgpu::backend::wgpu_core] Handling wgpu errors as fatal by default
thread 'main' (4520) panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-28.0.0\src\backend\wgpu_core.rs:1386:26:
wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline, label = 'glyphon pipeline'
Internal error in ShaderStages(FRAGMENT) shader: Fragment shader failed to compile with the following errors:
ERROR: 0:12: error(#236) varying expected: gl_FragCoord
ERROR: error(#273) 1 compilation errors. No code generated
Is my GPU is not supported?
Works on v0.2.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the startup failure on Windows 10 with version 0.4 and compare it with version 0.2, using the logged AMD Radeon HD 7660G and OpenGL backend details. Start at the glyphon pipeline creation reported by wgpu and trace the fragment shader compilation path. Done means determining whether the GPU is unsupported or correcting the regression so startup no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100