some fixes
This commit is contained in:
@@ -429,10 +429,15 @@ void CVkRenderContext::Init()
|
||||
stDeviceQueueCreateInfo.queueCount = 1;
|
||||
stDeviceQueueCreateInfo.pQueuePriorities = &fPriority;
|
||||
stDeviceQueueCreateInfo.queueFamilyIndex = g_iDrawFamily;
|
||||
|
||||
VkPhysicalDeviceGraphicsPipelineLibraryFeaturesEXT gplFeatures = {};
|
||||
gplFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GRAPHICS_PIPELINE_LIBRARY_FEATURES_EXT;
|
||||
gplFeatures.graphicsPipelineLibrary = VK_TRUE;
|
||||
|
||||
VkPhysicalDeviceVulkan13Features vk13Features = {};
|
||||
vk13Features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
|
||||
vk13Features.synchronization2 = VK_TRUE;
|
||||
vk13Features.pNext = &gplFeatures;
|
||||
|
||||
stDeviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
|
||||
stDeviceCreateInfo.queueCreateInfoCount = 1;
|
||||
@@ -475,9 +480,10 @@ void CVkRenderContext::Init()
|
||||
pCommand->g = 0;
|
||||
pCommand->AddSwapchainDependency( (IRenderingObject**)g_vkSwapchainImages.GetData(), DEPENDENCY_MODE_COLOR_CLEAR_DESTINATION );
|
||||
|
||||
CVkFunctionsPipelineLibrary functions = {};
|
||||
functions.SetVertex("funnygame/shaders/flat.spv", "vsMain");
|
||||
functions.SetPixel("funnygame/shaders/flat.spv", "psMain");
|
||||
CVkVertexDescriptionPipelineLibrary functions = {};
|
||||
functions.AddAttribute(0, 0, VERTEX_FORMAT_XYZ32_SFLOAT, 0);
|
||||
functions.AddLayout(0, 12);
|
||||
functions.SetTopology(TOPOLOGY_MODE_TRIANGLE_LIST);
|
||||
functions.Build();
|
||||
|
||||
CVkEmptyCommand *pPresentCommand = (CVkEmptyCommand*)g_pCommandBufferManager->CreateCommand("Empty");
|
||||
|
||||
Reference in New Issue
Block a user