to supported new version of GLSLCompiler.dll

This commit is contained in:
2023-05-31 17:18:14 +08:00
parent 71fd42cfc8
commit 5521c53c94
7 changed files with 43 additions and 8 deletions

View File

@@ -14,6 +14,8 @@
VK_NAMESPACE_BEGIN
VkPipelineCache CreatePipelineCache(VkDevice device,const VkPhysicalDeviceProperties &);
void SetShaderCompilerVersion(const GPUPhysicalDevice *);
#ifdef _DEBUG
DebugMaker *CreateDebugMaker(VkDevice);
DebugUtils *CreateDebugUtils(VkDevice);
@@ -415,6 +417,8 @@ GPUDevice *VulkanDeviceCreater::Create()
OutputPhysicalDeviceCaps(physical_device);
#endif//_DEBUG
SetShaderCompilerVersion(physical_device);
if(!RequirementCheck())
return(nullptr);

View File

@@ -86,7 +86,9 @@ void CheckInstanceLayer(CharPointerList &layer_list,CreateInstanceLayerInfo *lay
#define VK_LAYER_KHRONOS_ADD(name) VK_LAYER_CHECK(khronos,"KHRONOS",name)
VK_LAYER_KHRONOS_ADD(synchronization2)
VK_LAYER_KHRONOS_ADD(validation)
VK_LAYER_KHRONOS_ADD(profiles)
#define VK_LAYER_NV_ADD(name) VK_LAYER_CHECK(nv,"NV",name)