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.

Implement copysignf32 #148

@repi

Description

@repi

We have an implementation of it for OpenCL Kernel compute mode, but not for the "GL Compute" mode where it looks like there is no 1-to-1 mapping for it.

  error: TODO: Shader copysign not supported yet
    --> spirv-std\src\math_ext.rs:82:18
     |
  82 |         unsafe { core::intrinsics::copysignf32(self, sign) }
     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is needed by glam (#134) as f32::signum uses it

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: rustc_codegen_spirvIssues specific to the rustc_codegen_spirv crate.t: enhancementA new feature or improvement to an existing one.t: good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions