yuzu/src/video_core/renderer_opengl
comex d637114c17 video_core: Adjust NUM macro to avoid Clang warning
The previous definition was:

    #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32))

In cases where `field_name` happens to refer to an array, Clang thinks
`sizeof(an array value) / sizeof(a type)` is an instance of the idiom
where `sizeof` is used to compute an array length.  So it thinks the
type in the denominator ought to be the array element type, and warns if
it isn't, assuming this is a mistake.

In reality, `NUM` is not used to get array lengths at all, so there is no
mistake.  Silence the warning by applying Clang's suggested workaround
of parenthesizing the denominator.
2020-12-06 18:24:16 -05:00
..
gl_arb_decompiler.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_arb_decompiler.h gl_arb_decompiler: Implement an assembly shader decompiler 2020-06-11 22:12:07 -03:00
gl_buffer_cache.cpp video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
gl_buffer_cache.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
gl_device.cpp video_core: Enforce -Wunused-variable and -Wunused-but-set-variable 2020-10-02 21:19:35 -03:00
gl_device.h Merge pull request #4359 from ReinUsesLisp/clamp-shared 2020-07-21 04:51:05 -03:00
gl_fence_manager.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_fence_manager.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_framebuffer_cache.cpp gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_framebuffer_cache.h gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_query_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_query_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_rasterizer.cpp Merge pull request #4954 from lioncash/compare 2020-11-22 09:55:23 +08:00
gl_rasterizer.h gl_arb_decompiler: Implement robust buffer operations 2020-10-20 03:34:32 -03:00
gl_resource_manager.cpp gl_shader_util: Use std::string_view instead of star pointer 2020-08-23 21:23:54 -03:00
gl_resource_manager.h gl_shader_util: Use std::string_view instead of star pointer 2020-08-23 21:23:54 -03:00
gl_sampler_cache.cpp Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels. 2020-02-27 21:34:00 -05:00
gl_sampler_cache.h video_core: Add missing override specifiers 2019-07-07 13:38:39 -04:00
gl_shader_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_decompiler.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_decompiler.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_shader_disk_cache.cpp video_core: Enforce -Wredundant-move and -Wpessimizing-move 2020-10-28 02:44:50 -03:00
gl_shader_disk_cache.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
gl_shader_manager.cpp gl_arb_decompiler: Use NV_shader_buffer_{load,store} on assembly shaders 2020-07-18 01:59:57 -03:00
gl_shader_manager.h gl_arb_decompiler: Use NV_shader_buffer_{load,store} on assembly shaders 2020-07-18 01:59:57 -03:00
gl_shader_util.cpp gl_shader_util: Use std::string_view instead of star pointer 2020-08-23 21:23:54 -03:00
gl_shader_util.h gl_shader_util: Use std::string_view instead of star pointer 2020-08-23 21:23:54 -03:00
gl_state_tracker.cpp video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
gl_state_tracker.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
gl_stream_buffer.cpp gl_arb_decompiler: Use NV_shader_buffer_{load,store} on assembly shaders 2020-07-18 01:59:57 -03:00
gl_stream_buffer.h gl_stream_buffer: Use InvalidateBufferData instead unmap and map 2020-06-24 02:36:14 -03:00
gl_texture_cache.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gl_texture_cache.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
maxwell_to_gl.h video_core: Enforce -Werror=switch 2020-09-16 17:48:01 -03:00
renderer_opengl.cpp Fix telemetry-related exit crash from use-after-free 2020-12-05 02:42:50 +01:00
renderer_opengl.h renderer_opengl: Remove emulated mailbox presentation 2020-09-20 16:29:41 -03:00
utils.cpp buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
utils.h buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00