Hello. I was reading Introduction to DirectX 11 especially the part where the author used the Effects lib in the DirectX sample code and made a different class for every shader. I was trying to make a vector of objects with pointers to DirectX resources and render them in a loop. I have a pointer to the vertex buffer, index buffer and texture buffer. Now I'm wondering how to get a pointer to a shader if shaders are different classes.
Should I do an universal class for shaders and change the params for every objects created with that class? Example obj1->TechniqueName = "tech", obj1->filename = filename etc ?