title: What is the best way of dealing with textures for a same shader in Vulkan?
body: <p>Let me say the scenario, we have several meshes with the same shader (material type, e.g. PBR material), but the difference between meshes materials are the uniform buffer and textures for rendering them.</p>
  <p>For uniform buffer we have a dynamic uniform buffer technique that uniform buffer offsets can be specify for each draw in the command buffer, but for the image till here I didn't find a way of specifying image view in command buffer for descriptor set. In all the sample codes I have seen till now, for every mesh and every material of that mesh they have a new pipeline, descriptor sets and etc.</p>
  <p>I think it is not the best way, there must be a way to only have one pipeline and descriptor set and etc for a material type and only change the uniform buffer offset and texture image-view and sampler, am I right?</p>
  <p>If I'm wrong, are these samples doing the best way?</p>
  <p>How should I specify the <code>VkDescriptorPoolCreateInfo.maxSets</code> (or other limits like that) for dynamic scene that every minute meshes will add and remove?</p>
  <h2>Update:</h2>
  <p>I think it is possible to have a same pipeline and descriptor set layout for all of the objects but problem with <code>VkDescriptorPoolCreateInfo.maxSets</code> (or other limits like that) and the best practice still exist.</p>
  <h3>It is not duplicate</h3>
  <p>I was seeking for a way of specifying textures like what we can do with dynamic uniform buffer (to reduce number of descriptor sets) and along with this question there were complementary questions mostly to find best practices for the way that's gonna be suggested with an answer.</p>