Once you have compiled say a vertex shader at runtime in OpenGL or DirectX is it possible to determine its footprint in GPU memory?
In OpenGL you can use glGetProgramiv with GL_PROGRAM_BINARY_LENGTH (docs here). This is the length of the program as returned by glGetProgramBinary - it may not reflect the actual footprint in GPU memory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With