@@ -30,7 +30,7 @@ static ShaderObject::SetLayoutVector GetSetLayouts(DeviceState &dev_data, const
3030}
3131
3232ShaderObject::ShaderObject (DeviceState &dev_data, const VkShaderCreateInfoEXT &create_info_i, VkShaderEXT handle,
33- std::shared_ptr<spirv::Module> &spirv_module, uint32_t createInfoCount, VkShaderEXT *pShaders )
33+ std::shared_ptr<spirv::Module> &spirv_module)
3434 : StateObject(handle, kVulkanObjectTypeShaderEXT ),
3535 safe_create_info (&create_info_i),
3636 create_info(*safe_create_info.ptr()),
@@ -41,14 +41,6 @@ ShaderObject::ShaderObject(DeviceState &dev_data, const VkShaderCreateInfoEXT &c
4141 set_layouts(GetSetLayouts(dev_data, create_info)),
4242 push_constant_ranges(GetCanonicalId(create_info.pushConstantRangeCount, create_info.pPushConstantRanges)),
4343 set_compat_ids(GetCompatForSet(set_layouts, push_constant_ranges, 0 )) {
44- if ((create_info.flags & VK_SHADER_CREATE_LINK_STAGE_BIT_EXT) != 0 ) {
45- for (uint32_t i = 0 ; i < createInfoCount; ++i) {
46- const VkShaderEXT shader_handle = pShaders[i];
47- if (shader_handle != handle && shader_handle != VK_NULL_HANDLE) {
48- linked_shaders.push_back (shader_handle);
49- }
50- }
51- }
5244 // We need to update handle, but if using VK_SHADER_CODE_TYPE_SPIRV_EXT, it will be null
5345 if (spirv_module) {
5446 spirv_module->handle_ = handle_;
0 commit comments