Physical Device Pointers #466
Unanswered
DerEchteKarsten
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My current engine doesn't use descriptors, instead it passes raw device addresses of buffers into a push constant. The struct on the GPU side uses a Ptr wrapper struct, with only one field (ptr: *const T) and some utility methods. However when I tried to implement pointer arithmetic I got an error that you can't offset a pointer to an arbitrary element. I tried to get around this using inline spirv, however the pointer was of type _ptr_Function_T and to load an arbitrary element I need a pointer of type _ptr_PhysicalStorageBuffer_T. Is there an attribute or anything I could do to fix this?
Beta Was this translation helpful? Give feedback.
All reactions