Baggers
Baggers
Thanks for taking care of this while I've been away folks! I'll try get some time to get this is this next week
Thanks so much @metayan I'm not ready to dive back into lisp dev just yet, but this'll help a lot when I do. Hope your doing well!
Hey @stacksmith, sorry for the slow replies I've been putting all time into work recently. The days need extra hours. Luckily these two are easy to explain. In reverse order...
@stacksmith You are totally right. Sorry for misreading. Here is my test I think is equivilent ``` (defun test1 () (let ((garray (make-gpu-array '(0.0 1.0 2.0) :element-type :float))) (print (pull-g...
Oh this is super fucky! It turns out that [glGetTexImage](https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glGetTexImage.xhtml) is trying to pull *all* the layers. Well that sucks.. I used `glGetnTexImage` so it would check the size and...
ooo, maybe this will help ``` Parameter Name Type Initial Value Valid Range UNPACK_SWAP_BYTES boolean FALSE TRUE/FALSE UNPACK_LSB_FIRST boolean FALSE TRUE/FALSE UNPACK_ROW_LENGTH integer 0 [0,∞) UNPACK_SKIP_ROWS integer 0 [0,∞) UNPACK_SKIP_PIXELS...
Yes! https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPixelStore.xhtml We can use skip images and row height to grab what we need.
ugh. maybe not. it looks like skip is about incrementing the pointer :|
@metayan yeah I had some issues reproducing it at first, but glGetTexImage is writing into memory is doesnt own. If it's not crashing then it's more worrying :D I expanded...
https://stackoverflow.com/questions/32070930/copying-a-single-layer-of-a-2d-texture-array-from-gpu-to-cpu/32072660#32072660 > What version of GL are you working with? > > You are probably not going to like this, but... GL 4.5 introduces glGetTextureSubImage (...) to do precisely what...