-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Fix custom_shader_pipelined example shader #2992
[Merged by Bors] - Fix custom_shader_pipelined example shader #2992
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
bors r+ |
## 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
Build failed: |
failing due to a new rust lint fixed in #2997 |
bors r+ |
## 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
Pull request successfully merged into pipelined-rendering. Build succeeded: |
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