Changeset 2b40f48 in opengl-game for vulkan-game.cpp
- Timestamp:
- Dec 5, 2019, 5:48:59 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 7c929fc
- Parents:
- 785333b (diff), cf727ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r785333b r2b40f48 255 255 shipPipeline.addAttribute(VK_FORMAT_R32G32B32_SFLOAT, offset_of(&ShipVertex::color)); 256 256 shipPipeline.addAttribute(VK_FORMAT_R32G32B32_SFLOAT, offset_of(&ShipVertex::normal)); 257 shipPipeline.addAttribute(VK_FORMAT_R32_UINT, offset_of(&ShipVertex::objIndex)); 257 258 258 259 createBufferSet(sizeof(UBO_VP_mats), VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, … … 269 270 // the same data. Add an option to make some pipelines not use indexing 270 271 /* 271 shipPipeline.addObject(addVertexNormals<ShipVertex>({ 272 shipPipeline.addObject( 273 addObjectIndex<ShipVertex>(shipPipeline.getObjects().size(), 274 addVertexNormals<ShipVertex>({ 272 275 //back 273 276 {{ -0.5f, 0.3f, 0.0f}, {0.0f, 0.0f, 0.3f}}, … … 465 468 {{ 1.5f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.3f}}, 466 469 {{ 1.3f, 0.0f, -0.3f}, {0.0f, 0.0f, 0.3f}}, 467 }) , {470 })), { 468 471 0, 1, 2, 3, 4, 5, 469 472 6, 7, 8, 9, 10, 11,
Note:
See TracChangeset
for help on using the changeset viewer.