mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 22:11:26 +12:00
rsx: Apply Clang-Tidy fix "modernize-use-using"
This commit is contained in:
parent
f1e939936a
commit
0b97d12a7b
3 changed files with 18 additions and 19 deletions
|
@ -4,24 +4,23 @@
|
|||
#include "Emu/RSX/GL/GLVertexProgram.h"
|
||||
#include "Emu/RSX/GL/GLFragmentProgram.h"
|
||||
|
||||
typedef be_t<u32> CGprofile;
|
||||
typedef be_t<s32> CGbool;
|
||||
typedef be_t<u32> CGresource;
|
||||
typedef be_t<u32> CGenum;
|
||||
typedef be_t<u32> CGtype;
|
||||
using CGprofile = be_t<u32>;
|
||||
using CGbool = be_t<s32>;
|
||||
using CGresource = be_t<u32>;
|
||||
using CGenum = be_t<u32>;
|
||||
using CGtype = be_t<u32>;
|
||||
|
||||
typedef be_t<u32> CgBinaryOffset;
|
||||
typedef CgBinaryOffset CgBinaryEmbeddedConstantOffset;
|
||||
typedef CgBinaryOffset CgBinaryFloatOffset;
|
||||
typedef CgBinaryOffset CgBinaryStringOffset;
|
||||
typedef CgBinaryOffset CgBinaryParameterOffset;
|
||||
using CgBinaryOffset = be_t<u32>;
|
||||
using CgBinaryEmbeddedConstantOffset = CgBinaryOffset;
|
||||
using CgBinaryFloatOffset = CgBinaryOffset;
|
||||
using CgBinaryStringOffset = CgBinaryOffset;
|
||||
using CgBinaryParameterOffset = CgBinaryOffset;
|
||||
|
||||
// a few typedefs
|
||||
typedef struct CgBinaryParameter CgBinaryParameter;
|
||||
typedef struct CgBinaryEmbeddedConstant CgBinaryEmbeddedConstant;
|
||||
typedef struct CgBinaryVertexProgram CgBinaryVertexProgram;
|
||||
typedef struct CgBinaryFragmentProgram CgBinaryFragmentProgram;
|
||||
typedef struct CgBinaryProgram CgBinaryProgram;
|
||||
using CgBinaryParameter = struct CgBinaryParameter;
|
||||
using CgBinaryEmbeddedConstant = struct CgBinaryEmbeddedConstant;
|
||||
using CgBinaryVertexProgram = struct CgBinaryVertexProgram;
|
||||
using CgBinaryFragmentProgram = struct CgBinaryFragmentProgram;
|
||||
using CgBinaryProgram = struct CgBinaryProgram;
|
||||
|
||||
// fragment programs have their constants embedded in the microcode
|
||||
struct CgBinaryEmbeddedConstant
|
||||
|
|
|
@ -24,7 +24,7 @@ struct CellGcmConfig
|
|||
|
||||
struct CellGcmContextData;
|
||||
|
||||
typedef s32(CellGcmContextCallback)(vm::ptr<CellGcmContextData>, u32);
|
||||
using CellGcmContextCallback = s32 (vm::ptr<CellGcmContextData>, u32);
|
||||
|
||||
struct CellGcmContextData
|
||||
{
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#else
|
||||
// Cannot include Xlib.h before Qt5
|
||||
// and we don't need all of Xlib anyway
|
||||
typedef struct _XDisplay Display;
|
||||
typedef unsigned long Window;
|
||||
using Display = struct _XDisplay;
|
||||
using Window = unsigned long;
|
||||
#endif
|
||||
|
||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue