yuzu/src/video_core/renderer_vulkan
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
..
shaders vk_compute_pass: Implement indexed quads 2020-04-16 21:12:32 -03:00
fixed_pipeline_state.cpp vk_shader_decompiler: Implement force early fragment tests 2020-11-26 17:52:26 -03:00
fixed_pipeline_state.h vk_shader_decompiler: Implement force early fragment tests 2020-11-26 17:52:26 -03:00
maxwell_to_vk.cpp video_core: Enforce -Werror=switch 2020-09-16 17:48:01 -03:00
maxwell_to_vk.h vk_graphics_pipeline: Implement viewport swizzles with NV_viewport_swizzle 2020-05-04 18:31:17 -03:00
nsight_aftermath_tracker.cpp common/fileutil: Convert namespace to Common::FS 2020-08-16 06:52:40 -04:00
nsight_aftermath_tracker.h renderer_vulkan: Integrate Nvidia Nsight Aftermath on Windows 2020-04-14 00:39:21 -03:00
renderer_vulkan.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
renderer_vulkan.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_blit_screen.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_blit_screen.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_buffer_cache.cpp video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
vk_buffer_cache.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
vk_command_pool.cpp video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
vk_command_pool.h video_core: Resolve more variable shadowing scenarios 2020-12-04 16:19:09 -05:00
vk_compute_pass.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_compute_pass.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_compute_pipeline.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_compute_pipeline.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_descriptor_pool.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_descriptor_pool.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_device.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_device.h vk_device: Use Vulkan 1.0 properly 2020-08-20 16:55:22 -03:00
vk_fence_manager.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_fence_manager.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_graphics_pipeline.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_graphics_pipeline.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_image.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_image.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_master_semaphore.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_master_semaphore.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_memory_manager.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_memory_manager.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_pipeline_cache.cpp vk_shader_decompiler: Implement force early fragment tests 2020-11-26 17:52:26 -03:00
vk_pipeline_cache.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_query_cache.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_query_cache.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_rasterizer.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_rasterizer.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_renderpass_cache.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_renderpass_cache.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_resource_pool.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_resource_pool.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_sampler_cache.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_sampler_cache.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_scheduler.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_scheduler.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_shader_decompiler.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_shader_decompiler.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_shader_util.cpp vk_shader_util: Make use of designated initializers where applicable 2020-07-16 19:17:41 -04:00
vk_shader_util.h vulkan: Remove unnecessary includes 2020-04-28 21:54:46 -04:00
vk_staging_buffer_pool.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_staging_buffer_pool.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_state_tracker.cpp video_core: Adjust NUM macro to avoid Clang warning 2020-12-06 18:24:16 -05:00
vk_state_tracker.h video_core: Remove all Core::System references in renderer 2020-09-06 05:28:48 -03:00
vk_stream_buffer.cpp vk_stream_buffer: Fix initializing Vulkan with NVIDIA on Linux 2020-09-25 17:42:59 -04:00
vk_stream_buffer.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_swapchain.cpp renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_swapchain.h renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore 2020-09-19 01:46:37 -03:00
vk_texture_cache.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_texture_cache.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_update_descriptor.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
vk_update_descriptor.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
wrapper.cpp video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00
wrapper.h video_core: Resolve more variable shadowing scenarios pt.2 2020-12-05 06:39:35 -05:00