Skip to content

load_gltf example is broken on main #5127

@Elabajaba

Description

@Elabajaba

Bevy version

main e28b88b

[Optional] Relevant system information

Windows+AMD+Vulkan

What you did

run the load_gltf example

What went wrong

Shader validation fails, nothing gets shown on screen.

2022-06-28T20:42:44.114908Z ERROR bevy_render::render_resource::pipeline_cache: failed to create shader module: Validation Error

Caused by:
    In Device::create_shader_module

Shader validation error:
    ┌─ :556:2
    │
556 │   }
    │ ╭─^
557 │ │
558 │ │ // NOTE: This ensures that the world_normal is normalized and if
559 │ │ // vertex tangents and normal maps then normal mapping may be applied.
    · │
588 │ │         Nt = vec3<f32>(textureSample(normal_map_texture, normal_map_sampler, uv).rg * 2.0 - 1.0, 0.0);
    │ │                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ naga::Expression [67]
    · │
604 │ │     return N;
605 │ │ }
    │ ╰─^ naga::Function [30]


    Function [30] 'prepare_normal' is invalid
    Required uniformity of control flow for IMPLICIT_LEVEL in [67] is not fulfilled because of Expression([38])

Additional Information

Started with the array_texture commit. 84991d3

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-HighThis is particularly urgent, and deserves immediate attentionP-RegressionFunctionality that used to work but no longer does. Add a test for this!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions