Skip to content

u32::leading_zeros intrinic requires weird extension to work #210

Closed
@Firestar99

Description

@Firestar99

Expected Behaviour

Using u32::leading_zeros() in any shader errors with:

error: extension SPV_INTEL_shader_integer_functions2 is required
[...]
note: used from within `<u32>::leading_zeros`

This should not even need some intel-specific extension, that function probably exists already in the GL450 extension. Especially since some hardware (AMD) has special instructions for bit counting.

System Info

rust-gpu master forked from 1932353

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions