I have a problem in my engine, if I try to render multiple objects at once, only the last object to render shows up. What is the possible causes of this? As a side note I have not received any errors from the validation layer. I am stumped...
Last Object Only Renders
you overloaded the flux capacitor......
but really you are going to need to provide more information or code. preferably the code where you create, manage/store, and draw your objects.
Primary I'm with ncsu on this.
Some rough first thoughts:
- are you updating the world matrix of the objects correctly? (or accidentally using the same for all objects, thus only the last object is visible)
- a wrong index called in some buffer [static number] instead of [loop var]?
- ...
Currently I use a Dynamic Uniform Buffer, and use Dynamic Offsets. So each object for sure has it's own MVP data, etc... I'm a 100% certain it's not my entity array.
Edit:
Actually, could it possibly be that I need to add a VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER in VkWriteDescriptorSet for each object?