Skip to content

bug: No implicit casts for infix operators #2094

@reczkok

Description

@reczkok

This breaks due to vec2f / u32 operation

const gameSizeUniform = root.createUniform(d.u32, gameSize);

const randomInit = root['~unstable'].createGuardedComputePipeline((x, y) => {
  'use gpu';
  randf.seed2(d.vec2f(x, y).div(gameSizeUniform.$));
  ...
});

Metadata

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