diff options
author | Lioncash <mathew1800@gmail.com> | 2020-07-17 01:17:41 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-07-17 01:17:41 +0200 |
commit | 2025f847bbe28452e2754287ce63d6d0dd8d004a (patch) | |
tree | c985e752856105d47b8df4c238e05aa56452f578 /src/video_core | |
parent | vk_scheduler: Make use of designated initializers where applicable (diff) | |
download | yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar.gz yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar.bz2 yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar.lz yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar.xz yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.tar.zst yuzu-2025f847bbe28452e2754287ce63d6d0dd8d004a.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_util.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_util.cpp b/src/video_core/renderer_vulkan/vk_shader_util.cpp index 112df9c71..c1a218d76 100644 --- a/src/video_core/renderer_vulkan/vk_shader_util.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_util.cpp @@ -19,13 +19,13 @@ vk::ShaderModule BuildShader(const VKDevice& device, std::size_t code_size, cons const auto data = std::make_unique<u32[]>(code_size / sizeof(u32)); std::memcpy(data.get(), code_data, code_size); - VkShaderModuleCreateInfo ci; - ci.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO; - ci.pNext = nullptr; - ci.flags = 0; - ci.codeSize = code_size; - ci.pCode = data.get(); - return device.GetLogical().CreateShaderModule(ci); + return device.GetLogical().CreateShaderModule({ + .sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO, + .pNext = nullptr, + .flags = 0, + .codeSize = code_size, + .pCode = data.get(), + }); } } // namespace Vulkan |