Changes in vulkan-game.hpp [055750a:cf727ca] in opengl-game
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r055750a rcf727ca 33 33 vec3 color; 34 34 vec3 normal; 35 unsigned int objIndex; 35 36 }; 36 37 … … 178 179 vector<VertexType> addVertexNormals(vector<VertexType> vertices); 179 180 181 template<class VertexType> 182 vector<VertexType> addObjectIndex(unsigned int objIndex, vector<VertexType> vertices); 183 180 184 void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, 181 185 vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, vector<VkDescriptorBufferInfo>& bufferInfoList); … … 211 215 } 212 216 217 template<class VertexType> 218 vector<VertexType> VulkanGame::addObjectIndex(unsigned int objIndex, vector<VertexType> vertices) { 219 for (VertexType& vertex : vertices) { 220 vertex.objIndex = objIndex; 221 } 222 223 return vertices; 224 } 225 213 226 #endif // _VULKAN_GAME_H
Note:
See TracChangeset
for help on using the changeset viewer.