Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

min/max on IVec fails on spirv-opt. #699

@VZout

Description

@VZout

Clamp, min and max don't work with glam::UVec2 and glam::IVec2.

warning: an unknown error occurred
    |
    = note: spirv-opt failed, leaving as unoptimized
    
error: error:0:0 - OpLoad Pointer <id> '240[%240]' is not a logical pointer.
  %242 = OpLoad %uint %240

Minimal repo:

let v = UVec2::splat(0).max(UVec2::splat(1));

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions