Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

[glsl-in] Expressions after imageStore cause panic #1797

Closed
@fintelia

Description

This shader:

#version 460 core

layout(rgba8, binding = 0) writeonly uniform image2D img;

void main() {
    imageStore(img, ivec2(0), vec4(0));
    int i = 0;
}

Panics when naga attempts to compile it:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/front/mod.rs:40:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions