Shader Error in Array Texture Example: Invalid Field Accessor clip_from_view #13751
Labels
C-Bug
An unexpected or incorrect behavior
S-User-Error
This issue was caused by a mistake in the user's approach
Bevy version
bevy = "0.13.2"
System information
win 11, rtx 3060m, ryzen 7 6800h, rust 1.78
What you did
I followed the official Bevy example for creating a texture for use with a texture_2d_array shader uniform variable.
https://github.com/bevyengine/bevy/blob/latest/examples/shader/array_texture.rs
shader:
https://github.com/bevyengine/bevy/blob/3bfc42766621d12749c09eca3bfd9911dc0dc3f5/assets/shaders/array_texture.wgsl
What went wrong
I encountered an error in the shader code:
My Solution
To resolve this, I changed the line:
bevy/assets/shaders/array_texture.wgsl
Line 39 in 3bfc427
with this:
After making this change, the example worked as expected.
The text was updated successfully, but these errors were encountered: