mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Cut down on header includes
This commit is contained in:
parent
440c7a5ddf
commit
30ea7da063
@ -199,10 +199,10 @@ static INLINE void ctr_set_scale_vector(ctr_scale_vector_t* vec,
|
||||
int viewport_width, int viewport_height,
|
||||
int texture_width, int texture_height)
|
||||
{
|
||||
vec->x = -2.0 / viewport_width;
|
||||
vec->y = -2.0 / viewport_height;
|
||||
vec->u = 1.0 / texture_width;
|
||||
vec->v = -1.0 / texture_height;
|
||||
vec->x = -2.0f / viewport_width;
|
||||
vec->y = -2.0f / viewport_height;
|
||||
vec->u = 1.0f / texture_width;
|
||||
vec->v = -1.0f / texture_height;
|
||||
}
|
||||
|
||||
#endif /* CTR_COMMON_H__ */
|
||||
|
@ -16,7 +16,11 @@
|
||||
|
||||
#include <retro_assert.h>
|
||||
#include <dynamic/dylib.h>
|
||||
#include <lists/string_list.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <retro_timers.h>
|
||||
#include <retro_assert.h>
|
||||
#include <retro_math.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "../../config.h"
|
||||
@ -29,14 +33,12 @@
|
||||
#endif
|
||||
|
||||
#include "vulkan_common.h"
|
||||
#include <retro_timers.h>
|
||||
#include "../../configuration.h"
|
||||
#include "../include/vulkan/vulkan.h"
|
||||
#include <retro_assert.h>
|
||||
#include "vksym.h"
|
||||
#include <libretro_vulkan.h>
|
||||
#include <retro_math.h>
|
||||
#include <lists/string_list.h>
|
||||
|
||||
#include "../../verbosity.h"
|
||||
#include "../../configuration.h"
|
||||
|
||||
#define VENDOR_ID_AMD 0x1002
|
||||
#define VENDOR_ID_NV 0x10DE
|
||||
|
@ -48,9 +48,6 @@
|
||||
#include <libretro_vulkan.h>
|
||||
|
||||
#include "../video_defines.h"
|
||||
#include "../../driver.h"
|
||||
#include "../../retroarch.h"
|
||||
#include "../../verbosity.h"
|
||||
#include "../font_driver.h"
|
||||
#include "../drivers_shader/shader_vulkan.h"
|
||||
#include "../include/vulkan/vulkan.h"
|
||||
@ -753,10 +750,11 @@ static INLINE unsigned vulkan_format_to_bpp(VkFormat format)
|
||||
case VK_FORMAT_R8_UNORM:
|
||||
return 1;
|
||||
|
||||
default:
|
||||
RARCH_ERR("[Vulkan]: Unknown format.\n");
|
||||
abort();
|
||||
default: /* Unknown format */
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct vk_buffer vulkan_create_buffer(
|
||||
|
Loading…
x
Reference in New Issue
Block a user