You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to be able to reflect the word offset of offset in UBOs, this allows you to reorder and compact structs.
(This is mostly for dealing with floating hlsl $Globals)
This was a very trivial patch for me to implement locally, if it's something you wouldn't be against I can quickly put together a PR.
Hi apologies for the late reply. Definitely not against it if it's useful to you - so definitely would love a PR. Just a couple of things:
Looking at SpvReflectBlockVariable - it seems like embedded struct isn't necessary, so a member called word_offset should be sufficient. I don't have a strong opinion on this.
That sounds fine, will put something together hopefully sooner rather than later.
The word offset part was just to match the existing convention (since I suppose, it might be desirable in the future to have the word offsets of other things such as alignment and whatknot)
Hey there,
It would be useful to be able to reflect the word offset of
offset
in UBOs, this allows you to reorder and compact structs.(This is mostly for dealing with floating hlsl
$Globals
)This was a very trivial patch for me to implement locally, if it's something you wouldn't be against I can quickly put together a PR.
The text was updated successfully, but these errors were encountered: