Changeset c074f81 in opengl-game for sdl-game.cpp


Ignore:
Timestamp:
Jun 8, 2021, 2:29:12 PM (3 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
8aa4888
Parents:
567fa88
Message:

Change VulkanUtils::copyDataToMemory() to always require a size and to optionally flush the memory. Also add a VulkanUtils::copyDataToMappedMemory function that does the same thing, but assumes the data is already mapped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.cpp

    r567fa88 rc074f81  
    475475   }
    476476
    477    VulkanUtils::copyDataToMemory(device, object_VP_mats, uniformBuffers_modelPipeline.memory[imageIndex], 0);
     477   VulkanUtils::copyDataToMemory(device, &object_VP_mats, uniformBuffers_modelPipeline.memory[imageIndex], 0,
     478                                 sizeof(object_VP_mats), false);
    478479}
    479480
Note: See TracChangeset for help on using the changeset viewer.