-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add Slang-specific intrinsics for integer pack/unpack #6459
Conversation
According to the proposal, we should just delete int8_t4_packed as a special builtin basic type, and just define it as a typealias to uint. I now think it wasn’t not a great idea to introduce the type as another basic type, because it will introduce too many additional overloaded functions/operators for no benefit. Let’s remove it from our existing code. |
I've removed the builtin types - the change now looks big but the builtin type removal can be found in this commit |
return packInt4x8Clamp(unpackedValue); | ||
} | ||
|
||
// Work-graphs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is work-graph showing up here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added code below work-graphs(which is the last section of the hlsl.meta.slang file) but since the added code is similar to some existing code git treated it as if I moved the work-graphs section up.
Also there seems to be a formatting error, I will push a quick fix.
Related to #6175.
Adds Slang-specific integer pack/unpack intrinsics based on the proposal.
This change is mostly moving the code from the already implemented HLSL pack/unpack intrinsics with code improvements. Floating point intrinsics will be added in a follow-up PR - I am making a separate PR for the integer intrinsics to reduce the size of this follow-up PR.