Changeset 8aa4888 in opengl-game for sdl-game.cpp
- Timestamp:
- Jun 8, 2021, 3:21:53 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 8dcbf62
- Parents:
- c074f81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sdl-game.cpp
rc074f81 r8aa4888 1115 1115 } 1116 1116 1117 void VulkanGame::createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties,1117 void VulkanGame::createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags usages, VkMemoryPropertyFlags properties, 1118 1118 BufferSet& set) { 1119 set.usages = usages; 1120 set.properties = properties; 1121 1119 1122 set.buffers.resize(swapChainImageCount); 1120 1123 set.memory.resize(swapChainImageCount); … … 1122 1125 1123 1126 for (size_t i = 0; i < swapChainImageCount; i++) { 1124 VulkanUtils::createBuffer(device, physicalDevice, bufferSize, flags, properties, set.buffers[i], set.memory[i]);1127 VulkanUtils::createBuffer(device, physicalDevice, bufferSize, usages, properties, set.buffers[i], set.memory[i]); 1125 1128 1126 1129 set.infoSet[i].buffer = set.buffers[i];
Note:
See TracChangeset
for help on using the changeset viewer.