Search code examples
glslvulkanspir-v

Is there a way to get attributes and uniforms in Vulkan after the vkCreateShaderModule?


Like in opengl we can do glGetActiveAttrib and glGetActiveUniform.


Solution

  • No. You're expected to either introspect the SPIR-V yourself or a priori know what locations/bindings you used for the various interface variables in your shader.