Changeset 06d959f in opengl-game for graphics-pipeline_vulkan.hpp
- Timestamp:
- Nov 27, 2019, 5:19:23 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- e1308e8
- Parents:
- 0cf1a23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graphics-pipeline_vulkan.hpp
r0cf1a23 r06d959f 11 11 12 12 #include "vulkan-utils.hpp" 13 14 using namespace std;15 13 16 14 // TODO: Maybe change the name of this struct so I can call the list something other than descriptorInfoList … … 57 55 58 56 const vector<SceneObject<VertexType>>& getObjects(); 59 booladdObject(const vector<VertexType>& vertices, vector<uint16_t> indices, VkCommandPool commandPool,57 void addObject(const vector<VertexType>& vertices, vector<uint16_t> indices, VkCommandPool commandPool, 60 58 VkQueue graphicsQueue); 61 59 … … 413 411 414 412 template<class VertexType> 415 boolGraphicsPipeline_Vulkan<VertexType>::addObject(const vector<VertexType>& vertices, vector<uint16_t> indices,413 void GraphicsPipeline_Vulkan<VertexType>::addObject(const vector<VertexType>& vertices, vector<uint16_t> indices, 416 414 VkCommandPool commandPool, VkQueue graphicsQueue) { 417 415 … … 426 424 idx += numVertices; 427 425 } 428 objects.push_back({ vertices, indices });426 objects.push_back({ vertices, indices }); 429 427 430 428 VulkanUtils::copyDataToBuffer(device, physicalDevice, commandPool, vertices, vertexBuffer, numVertices, … … 435 433 graphicsQueue); 436 434 numIndices += indices.size(); 437 438 return true;439 435 } 440 436
Note:
See TracChangeset
for help on using the changeset viewer.