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

[naga] Allow abstract scalars in modf and frexp results. #6821

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

jimblandy
Copy link
Member

Allow PredeclaredType::ModfResult and PredeclaredType::FrexpResult to hold any sort of scalar, not just a floating-point scalar.

This prepares Naga for implementing the AbstractFloat overloads for the modf and frexp builtin functions.

@jimblandy jimblandy requested a review from a team as a code owner December 24, 2024 02:48
@jimblandy jimblandy added naga Shader Translator area: naga middle-end Intermediate representation lang: WGSL WebGPU Shading Language labels Dec 24, 2024
Allow `PredeclaredType::ModfResult` and `PredeclaredType::FrexpResult`
to hold any sort of scalar, not just a floating-point scalar.

This prepares Naga for implementing the `AbstractFloat` overloads for
the `modf` and `frexp` builtin functions.
@jimblandy jimblandy force-pushed the naga-modf-frexp-predefined-scalar branch from 5ff49fd to d7e1ae0 Compare December 24, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga middle-end Intermediate representation lang: WGSL WebGPU Shading Language naga Shader Translator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant