diff options
| author | 2021-01-24 04:32:19 -0300 | |
|---|---|---|
| committer | 2021-01-24 04:32:19 -0300 | |
| commit | 1b76e7e890b92dcb549e2cfc3d7ee895fcd33598 (patch) | |
| tree | 3bd6488c67ef1ae99c89d4bb695f8bea3634c8da /src/video_core/shader | |
| parent | maxwell_3d: Silence array bounds warnings (diff) | |
| download | yuzu-1b76e7e890b92dcb549e2cfc3d7ee895fcd33598.tar.gz yuzu-1b76e7e890b92dcb549e2cfc3d7ee895fcd33598.tar.xz yuzu-1b76e7e890b92dcb549e2cfc3d7ee895fcd33598.zip | |
video_core: Silence -Wmissing-field-initializers warnings
Diffstat (limited to 'src/video_core/shader')
| -rw-r--r-- | src/video_core/shader/async_shaders.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/shader/async_shaders.cpp b/src/video_core/shader/async_shaders.cpp index 9707136e9..3b40db9bc 100644 --- a/src/video_core/shader/async_shaders.cpp +++ b/src/video_core/shader/async_shaders.cpp | |||
| @@ -129,6 +129,15 @@ void AsyncShaders::QueueOpenGLShader(const OpenGL::Device& device, | |||
| 129 | .compiler_settings = compiler_settings, | 129 | .compiler_settings = compiler_settings, |
| 130 | .registry = registry, | 130 | .registry = registry, |
| 131 | .cpu_address = cpu_addr, | 131 | .cpu_address = cpu_addr, |
| 132 | .pp_cache = nullptr, | ||
| 133 | .vk_device = nullptr, | ||
| 134 | .scheduler = nullptr, | ||
| 135 | .descriptor_pool = nullptr, | ||
| 136 | .update_descriptor_queue = nullptr, | ||
| 137 | .bindings{}, | ||
| 138 | .program{}, | ||
| 139 | .key{}, | ||
| 140 | .num_color_buffers = 0, | ||
| 132 | }); | 141 | }); |
| 133 | cv.notify_one(); | 142 | cv.notify_one(); |
| 134 | } | 143 | } |
| @@ -143,6 +152,15 @@ void AsyncShaders::QueueVulkanShader(Vulkan::VKPipelineCache* pp_cache, | |||
| 143 | std::unique_lock lock(queue_mutex); | 152 | std::unique_lock lock(queue_mutex); |
| 144 | pending_queue.push({ | 153 | pending_queue.push({ |
| 145 | .backend = Backend::Vulkan, | 154 | .backend = Backend::Vulkan, |
| 155 | .device = nullptr, | ||
| 156 | .shader_type{}, | ||
| 157 | .uid = 0, | ||
| 158 | .code{}, | ||
| 159 | .code_b{}, | ||
| 160 | .main_offset = 0, | ||
| 161 | .compiler_settings{}, | ||
| 162 | .registry{}, | ||
| 163 | .cpu_address = 0, | ||
| 146 | .pp_cache = pp_cache, | 164 | .pp_cache = pp_cache, |
| 147 | .vk_device = &device, | 165 | .vk_device = &device, |
| 148 | .scheduler = &scheduler, | 166 | .scheduler = &scheduler, |