Changeset 7d2b0b9 in opengl-game for vulkan-ref.cpp
- Timestamp:
- Oct 3, 2019, 3:44:55 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 3de31cf
- Parents:
- 4d84c72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-ref.cpp
r4d84c72 r7d2b0b9 863 863 864 864 void createGraphicsPipeline(string vertShaderFile, string fragShaderFile, GraphicsPipelineInfo& info) { 865 auto vertShaderCode = readFile(vertShaderFile); 866 auto fragShaderCode = readFile(fragShaderFile); 865 /*** START OF REFACTORED CODE ***/ 866 vector<char> vertShaderCode = readFile(vertShaderFile); 867 vector<char> fragShaderCode = readFile(fragShaderFile); 867 868 868 869 VkShaderModule vertShaderModule = createShaderModule(vertShaderCode); … … 885 886 VkPipelineVertexInputStateCreateInfo vertexInputInfo = {}; 886 887 vertexInputInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO; 888 /*** END OF REFACTORED CODE ***/ 887 889 888 890 vertexInputInfo.vertexBindingDescriptionCount = 1; … … 995 997 } 996 998 999 /*** START OF REFACTORED CODE ***/ 997 1000 vkDestroyShaderModule(device, vertShaderModule, nullptr); 998 1001 vkDestroyShaderModule(device, fragShaderModule, nullptr); 1002 /*** END OF REFACTORED CODE ***/ 999 1003 } 1000 1004
Note:
See TracChangeset
for help on using the changeset viewer.