Original Post
i need to load any number of shaders for a mesh, but given that I want to code the correct way, I want to iterate over the variables list and load them into a map. I can see how to determine the number of variables to loop over, in order to load them, but i dont see how to determine type. so i dont know whether to call AsMatrix, AsShaderResource, ect.. is there any way to get the type at runtime?