Hi, I try to program a shader but for my use case I need a time value.
For this I tried to use the extension
#extension GL_EXT_shader_realtime_clock : enable // NOT ALLOWED
which is not allowed in the current setup.
I dont know much about Vulcan or shaders, but could this be shipped with the next update ? That would make things a lot easier as I also try to make an animated (sprite) material which is not possible without a time value.
On the other hand , i tried passing it trough c++ directly using a uniform variable
uniform float u_Time;
which would lead to the following error.
'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
Looking forward for a solution, as I said I am not experienced in shaders so maybe there already is.