Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hlslparser: Add missing "ldexp" and "faceforward" HLSL intrinsics. #859

Merged

Conversation

kblaschke
Copy link
Member

Had to simulate it with the "x * exp2(exp)" expression in GLSL, as GLSL only supports integer types as exponents in its native ldexp implementation, while HLSL solely uses floats.

@kblaschke kblaschke added this to the 4.2 milestone Dec 11, 2024
@kblaschke kblaschke self-assigned this Dec 11, 2024
@kblaschke kblaschke changed the title hlslparser: Add missing "ldexp" HLSL intrinsic. hlslparser: Add missing "ldexp" and "faceforward" HLSL intrinsics. Dec 11, 2024
Copy link
Collaborator

@revmischa revmischa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have anything useful to provide here

Had to simulate it with the "x * exp2(exp)" expression in GLSL, as GLSL only supports integer types as exponents in its native ldexp implementation, while HLSL solely uses floats.
@kblaschke kblaschke force-pushed the add-ldexp-hlsl-intrinsic branch from 06e103f to a77df53 Compare December 16, 2024 16:43
@kblaschke kblaschke merged commit a77df53 into projectM-visualizer:master Dec 16, 2024
9 checks passed
@kblaschke kblaschke deleted the add-ldexp-hlsl-intrinsic branch December 16, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants