- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.2k
 
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenO-WebGPUSpecific to the WebGPU render APISpecific to the WebGPU render APIP-CrashA sudden unexpected crashA sudden unexpected crash
Milestone
Description
Bevy version
main since #10268
What you did
Build an example for WebGPU
What went wrong
1 error(s) generated while compiling the shader:
:837:16 error: 'textureSample' must only be called from uniform control flow
    let _e66 = textureSample(irradiance_volumeX_naga_oil_mod_XMJSXM6K7OBRHEOR2NVSXG2C7OZUWK527MJUW4ZDJNZTXGX, irradiance_volume_samplerX_naga_oil_mod_XMJSXM6K7OBRHEOR2NVSXG2C7OZUWK527MJUW4ZDJNZTXGX, uvw_x);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1601:20 note: called indirectly by 'apply_pbr_lightingX_naga_oil_mod_XMJSXM6K7OBRHEOR2OBRHEX3GOVXGG5DJN5XHGX' from 'fragment'
        let _e22 = apply_pbr_lightingX_naga_oil_mod_XMJSXM6K7OBRHEOR2OBRHEX3GOVXGG5DJN5XHGX(_e21);
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:1599:5 note: control flow depends on possibly non-uniform value
    if ((_e14 & STANDARD_MATERIAL_FLAGS_UNLIT_BITX_naga_oil_mod_XMJSXM6K7OBRHEOR2OBRHEX3UPFYGK4YX) == 0u) {
    ^^
:1592:15 note: return value of 'pbr_input_from_standard_materialX_naga_oil_mod_XMJSXM6K7OBRHEOR2OBRHEX3GOJQWO3LFNZ2AX' may be non-uniform
    let _e2 = pbr_input_from_standard_materialX_naga_oil_mod_XMJSXM6K7OBRHEOR2OBRHEX3GOJQWO3LFNZ2AX(in, is_front);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
alice-i-cecile
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenO-WebGPUSpecific to the WebGPU render APISpecific to the WebGPU render APIP-CrashA sudden unexpected crashA sudden unexpected crash