-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support built-in offsetof macro #257
Comments
Offsetof is a macro in C/C++ and it's not expressible as a normal function, so I'm not sure it could even live in a namespace. |
I'm going to give up ownership of this issue as I'm not actively working on it. |
With the new addition of templated loads in ByteAddressBuffer this would be a huge win 😊 |
Came looking for this so I guess +1 from me, for the same reason Jasper listed. |
Hi! Are there any news, by any chance? :) I've tried it on a recent build from the main branch, and the error I'm getting from
says |
+1, would love to have this :) |
Is there any update? |
I'll add my voice to this request as well. +1 |
metoo |
+1 |
+1 Would be super helpful when dealing with ByteAddressBuffer |
+1 |
I'm trying to make my own BDA pointer and reference structs (because I'm impatient) and and one of the things that's blocking me is the lack of btw |
the SPIR-V support could be limited to only when |
We should consider supporting offsetof in the future. Since this normally requires stddef.h/cstddef, we should consider adding built-in version under hlsl namespace with default/auto
using namespace hlsl;
when compiling hlsl source.Separating this issue from the sizeof issue microsoft/DirectXShaderCompiler#1291 to allow independent resolution.
The text was updated successfully, but these errors were encountered: