[Merged by Bors] - Fix custom_shader_pipelined example shader#2992
Closed
Nibor62 wants to merge 1 commit intobevyengine:pipelined-renderingfrom
Closed
[Merged by Bors] - Fix custom_shader_pipelined example shader#2992Nibor62 wants to merge 1 commit intobevyengine:pipelined-renderingfrom
Nibor62 wants to merge 1 commit intobevyengine:pipelined-renderingfrom
Conversation
Member
|
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Oct 25, 2021
## Objective
Looking though the new pipelined example I stumbled on an issue with the example shader :
```
Oct 20 12:38:44.891 INFO bevy_render2::renderer: AdapterInfo { name: "Intel(R) UHD Graphics 620 (KBL GT2)", vendor: 32902, device: 22807, device_type: IntegratedGpu, backend: Vulkan }
Oct 20 12:38:44.894 INFO naga::back::spv::writer: Skip function Some("fetch_point_shadow")
Oct 20 12:38:44.894 INFO naga::back::spv::writer: Skip function Some("fetch_directional_shadow")
Oct 20 12:38:44.898 ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_shader_module
Global variable [1] 'view' is invalid
Type isn't compatible with the storage class
```
## Solution
added `<uniform>` here and there.
Note : my current mastery of shaders is about 2 days old, so this still kinda look likes wizardry
Contributor
|
Build failed: |
Member
|
failing due to a new rust lint fixed in #2997 |
Member
|
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Oct 25, 2021
## Objective
Looking though the new pipelined example I stumbled on an issue with the example shader :
```
Oct 20 12:38:44.891 INFO bevy_render2::renderer: AdapterInfo { name: "Intel(R) UHD Graphics 620 (KBL GT2)", vendor: 32902, device: 22807, device_type: IntegratedGpu, backend: Vulkan }
Oct 20 12:38:44.894 INFO naga::back::spv::writer: Skip function Some("fetch_point_shadow")
Oct 20 12:38:44.894 INFO naga::back::spv::writer: Skip function Some("fetch_directional_shadow")
Oct 20 12:38:44.898 ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_shader_module
Global variable [1] 'view' is invalid
Type isn't compatible with the storage class
```
## Solution
added `<uniform>` here and there.
Note : my current mastery of shaders is about 2 days old, so this still kinda look likes wizardry
Contributor
|
Pull request successfully merged into pipelined-rendering. Build succeeded: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Looking though the new pipelined example I stumbled on an issue with the example shader :
Solution
added
<uniform>here and there.Note : my current mastery of shaders is about 2 days old, so this still kinda look likes wizardry