Index: gpu/vulkan/vulkan_shader_module.cc |
diff --git a/gpu/vulkan/vulkan_shader_module.cc b/gpu/vulkan/vulkan_shader_module.cc |
index 4b13667e9599630f9f3780bd21a5d439eee0df85..04d7da92d375660885ef7ed0438b5d767373f36c 100644 |
--- a/gpu/vulkan/vulkan_shader_module.cc |
+++ b/gpu/vulkan/vulkan_shader_module.cc |
@@ -123,7 +123,7 @@ bool VulkanShaderModule::InitializeSPIRV(ShaderType type, |
shader_module_create_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; |
shader_module_create_info.pCode = |
reinterpret_cast<const uint32_t*>(source.c_str()); |
- shader_module_create_info.codeSize = source.length() / 4; |
+ shader_module_create_info.codeSize = source.length(); |
VkShaderModule shader_module = VK_NULL_HANDLE; |
VkResult result = |