Hello,
i’m look to make some debug info with the module GPU, i’m use the builtin shader ; where i can find this shader ? To understand all shader i wish read all params exposed, but i don’t know if it’s available with the GPU module, or in the C source maybe ?
I’m speak about this shader
Thanks for your help.
First, locate the shader you want in this array:
https://developer.blender.org/diffusion/B/browse/master/source/blender/gpu/intern/gpu_shader_builtin.c$137
Get its create_info
name and locate that create info in this directory:
https://developer.blender.org/diffusion/B/browse/master/source/blender/gpu/shaders/infos/
The create info structure should tell you the interface of the shader as well as which shader source it uses, which typically the fragment_source
and vertex_source
members. Those shader sources will typically be available in this directory:
https://developer.blender.org/diffusion/B/browse/master/source/blender/gpu/shaders/
1 Like
Great ! Thanks for your help !