#literally just take a binary file and pass it to the gpu
Explore tagged Tumblr posts
Text
Alright folks, we have a bunch of binary in this file which will be used as binary. No need to transform, just pass it to the gpu so it can do its thing.
How should we read the file and store the data? Char vector. Because that's the only way you can output file reads.
Yes this makes sense.
This is why the guy was losing his mind for years trying to get c++ to accept embeding files into programs.
#also why Odin specifically has a byte array#the amount of contorting you have to do simply to read a file is wild#i just got to the shader part of the vulkan tutorial#literally just take a binary file and pass it to the gpu#so much setup just to do that hand off#coding#vulkan#game dev#c++
1 note
·
View note