godot/servers/visual/rasterizer_rd
Rémi Verschelde f725bd99f4 Fix some -Wmaybe-uninitialized warnings
Namely:
```
modules/basis_universal/register_types.cpp: In function 'Ref<Image> basis_universal_unpacker(const Vector<unsigned char>&)':
modules/basis_universal/register_types.cpp:266:15: warning: 'imgfmt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  266 |  image->create(info.m_width, info.m_height, info.m_total_levels > 1, imgfmt, gpudata);
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modules/basis_universal/register_types.cpp:255:39: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
  255 |    bool ret = tr.transcode_image_level(ptr, size, 0, i, dst + ofs, level.m_total_blocks - i, format);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

```
servers/visual_server.cpp: In member function 'Error VisualServer::_surface_set_data(Array, uint32_t, uint32_t*, uint32_t, Vector<unsigned char>&, int, Vector<unsigned char>&, int, AABB&, Vector<AABB>&)':
servers/visual_server.cpp:636:15: warning: 'iw' may be used uninitialized in this function [-Wmaybe-uninitialized]
  636 |       copymem(&iw[i * 2], &v, 2);
      |               ^
```

```
core/image.cpp: In member function 'Error Image::generate_mipmap_roughness(Image::RoughnessChannel, const Ref<Image>&)':
core/image.cpp:1683:11: warning: 'roughness' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1683 |     float roughness;
      |           ^~~~~~~~~
```
2020-03-27 14:33:06 +01:00
..
shaders Rename conflicting variable to fix MoltenVK shader compilation. 2020-03-26 09:02:36 +02:00
cubemap_coeffs.h Make file formatting comply with POSIX and Unix standards 2020-03-21 17:41:03 -04:00
light_cluster_builder.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
light_cluster_builder.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_canvas_rd.cpp Fix various typos 2020-03-11 13:59:18 -04:00
rasterizer_canvas_rd.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rasterizer_effects_rd.cpp Working sky shader implementation 2020-03-21 20:43:44 -07:00
rasterizer_effects_rd.h Working sky shader implementation 2020-03-21 20:43:44 -07:00
rasterizer_rd.cpp Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00
rasterizer_rd.h Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00
rasterizer_scene_high_end_rd.cpp Fix some -Wmaybe-uninitialized warnings 2020-03-27 14:33:06 +01:00
rasterizer_scene_high_end_rd.h Working sky shader implementation 2020-03-21 20:43:44 -07:00
rasterizer_scene_rd.cpp Replace subpass textures with color in sky shader 2020-03-24 10:11:00 -07:00
rasterizer_scene_rd.h Replace subpass textures with color in sky shader 2020-03-24 10:11:00 -07:00
rasterizer_storage_rd.cpp Add shader based background mode 2020-03-19 18:30:39 -07:00
rasterizer_storage_rd.h Add shader based background mode 2020-03-19 18:30:39 -07:00
render_pipeline_vertex_format_cache_rd.cpp Vulkan: Move thirdparty code out of drivers, style fixes 2020-02-11 14:08:44 +01:00
render_pipeline_vertex_format_cache_rd.h Fix compilation warnings and re-enable werror=yes on Travis 2020-02-18 20:51:25 +01:00
SCsub Custom material support seems complete. 2020-02-11 11:53:29 +01:00
shader_compiler_rd.cpp Remove Vulkan debugging prints 2020-02-13 18:50:07 +01:00
shader_compiler_rd.h Style: Set clang-format Standard to Cpp11 2020-03-17 07:36:24 +01:00
shader_rd.cpp Remove unused classes and stray headers 2020-03-24 09:50:51 +01:00
shader_rd.h Reimplement Mutex with C++'s <mutex> 2020-02-26 20:40:10 +01:00