Changeset 8aa4888 in opengl-game for vulkan-game.cpp
- Timestamp:
- Jun 8, 2021, 3:21:53 PM (3 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 8dcbf62
- Parents:
- c074f81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
rc074f81 r8aa4888 1942 1942 } 1943 1943 1944 void VulkanGame::createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, VkMemoryPropertyFlags properties,1944 void VulkanGame::createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags usages, VkMemoryPropertyFlags properties, 1945 1945 BufferSet& set) { 1946 set.usages = usages; 1947 set.properties = properties; 1948 1946 1949 set.buffers.resize(swapChainImageCount); 1947 1950 set.memory.resize(swapChainImageCount); … … 1949 1952 1950 1953 for (size_t i = 0; i < swapChainImageCount; i++) { 1951 VulkanUtils::createBuffer(device, physicalDevice, bufferSize, flags, properties, set.buffers[i], set.memory[i]);1954 VulkanUtils::createBuffer(device, physicalDevice, bufferSize, usages, properties, set.buffers[i], set.memory[i]); 1952 1955 1953 1956 set.infoSet[i].buffer = set.buffers[i];
Note:
See TracChangeset
for help on using the changeset viewer.