3 ms·
I'm a n00b when it comes to these sort of things, how would one upload a texture to a GPU, for example, using this? Open the "GPU driver file", seek to some spe
by magicalhippo 7y ago
I'm a n00b when it comes to these sort of things, how would one upload a texture to a GPU, for example, using this? Open the "GPU driver file", seek to some specific location and write the texture bytes?
- 0xakhil 7y agoOne way is to open the driver file and use an ioctl call to allocate a shared buffer and write your texture there.
- magicalhippo 7y agoBut have you gained anything then? The application doing the ioctl still has to be acutely aware of how exactly to perform the ioctl, no? That is, I couldn't just `cat` a texture into my GPU.