Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

require clamping of index for OpVectorExtractDyanmic, OpVectorInsertDynamic, and bitfield insert and extract #27

Open
dneto0 opened this issue May 10, 2019 · 2 comments

Comments

@dneto0
Copy link
Contributor

dneto0 commented May 10, 2019

This eliminates a source of undefined behaviour.

@Kangz
Copy link
Collaborator

Kangz commented May 10, 2019

Maybe I misunderstand the title, shouldn't this be handled by implementations as a code transform instead? I'm not sure how easy it is to spec that the application has to do it.

@dneto0
Copy link
Contributor Author

dneto0 commented Jun 22, 2019

Yes, the implementation has to ensure that these instructions behave as if clamped. The shader coming into the implementation doesn't have to do anything special to get this behaviour.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants