yuzu/src/video_core
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
..
buffer_cache video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
command_classes video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
engines maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict 2020-12-05 17:59:02 -05:00
host_shaders video_core: Fix instances where msbuild always regenerated host shaders 2020-09-23 22:27:17 -03:00
macro video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
renderer_opengl video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
renderer_vulkan video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
shader video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
texture_cache video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
textures textures/decoders: Fix block linear to pitch copies 2020-08-10 20:45:03 -03:00
cdma_pusher.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
cdma_pusher.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
CMakeLists.txt Merge pull request #4848 from ReinUsesLisp/type-limits 2020-10-28 03:16:10 -04:00
compatible_formats.cpp video_core: Rearrange pixel format names 2020-07-13 01:44:23 -03:00
compatible_formats.h compatible_formats: Add missing header guard 2020-07-21 00:42:19 -04:00
dirty_flags.cpp video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
dirty_flags.h DirtyFlags: relax need to set render_targets as dirty 2020-03-14 11:47:33 -04:00
dma_pusher.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
dma_pusher.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
fence_manager.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_asynch.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_asynch.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_synch.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_synch.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_thread.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
gpu_thread.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
guest_driver.cpp gl_shader_cache: Rework shader cache and remove post-specializations 2020-03-09 18:40:06 -03:00
guest_driver.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
memory_manager.cpp video_core: NVDEC Implementation 2020-10-26 23:07:36 -04:00
memory_manager.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
morton.cpp video_core: Rearrange pixel format names 2020-07-13 01:44:23 -03:00
morton.h renderer_opengl: Use block linear swizzling for CPU framebuffers 2019-08-21 02:17:14 -03:00
query_cache.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
rasterizer_accelerated.cpp core: memory: Move to Core::Memory namespace. 2020-04-17 00:59:28 -04:00
rasterizer_accelerated.h core: memory: Move to Core::Memory namespace. 2020-04-17 00:59:28 -04:00
rasterizer_interface.h rasterizer_interface: Make use of [[nodiscard]] where applicable 2020-11-17 07:19:13 -05:00
renderer_base.cpp video_core: Initialize renderer with a GPU 2020-08-22 01:51:45 -03:00
renderer_base.h render_base: Make use of [[nodiscard]] where applicable 2020-11-17 07:19:12 -05:00
sampler_cache.cpp video_core: Abstract vk_sampler_cache into a templated class 2019-04-02 15:54:11 -03:00
sampler_cache.h video_core: Abstract vk_sampler_cache into a templated class 2019-04-02 15:54:11 -03:00
shader_cache.h shader_cache: Make use of std::erase_if 2020-07-14 15:49:15 -04:00
shader_notify.cpp Fix style issues 2020-07-18 14:24:32 +10:00
shader_notify.h async shaders 2020-07-17 14:24:57 +10:00
surface.cpp video_core: Rearrange pixel format names 2020-07-13 01:44:23 -03:00
surface.h video_core: Rearrange pixel format names 2020-07-13 01:44:23 -03:00
video_core.cpp video_core: NVDEC Implementation 2020-10-26 23:07:36 -04:00
video_core.h Frontend/GPU: Refactor context management 2020-03-24 21:03:42 -06:00