bevyengine / bevyengine/bevy

`downsample.wesl` has invalid WESL syntax

Closed Beginner friendly
#25,733 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug D-Shaders D-Straightforward S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version and features

`0c4ddaa4b9578d224e7d49ffbc80a19412d37a92`

## What you did

`wgslfmt`

## What went wrong

```
...
=====

Error in: ./crates/bevy_core_pipeline/src/mip_generation/downsample.wesl

Formatted: 200, Errors: 1, Unchanged: 46
```

## Additional information

`##TEXTURE_FORMAT##` is not valid WESL or WGSL syntax.

See: `crates/bevy_core_pipeline/src/mip_generation/downsample.wesl`

Contributor guide

Open the contributing guide

Research direction

Start with crates/bevy_core_pipeline/src/mip_generation/downsample.wesl and run wgslfmt on it to inspect the reported syntax error. Replace the invalid ##TEXTURE_FORMAT## usage with valid WESL or WGSL syntax, then confirm wgslfmt reports no errors for the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.