Fix GPUCMD_AddSingleParam() C++ compatibility issue
This commit is contained in:
parent
8f0f83a417
commit
0e7755af01
@ -89,7 +89,10 @@ u32 f32tof24(float f);
|
|||||||
u32 f32tof31(float f);
|
u32 f32tof31(float f);
|
||||||
|
|
||||||
/// Adds a command with a single parameter to the current command buffer.
|
/// Adds a command with a single parameter to the current command buffer.
|
||||||
#define GPUCMD_AddSingleParam(header, param) GPUCMD_Add((header), (u32[]){(u32)(param)}, 1)
|
static inline void GPUCMD_AddSingleParam(u32 header, u32 param)
|
||||||
|
{
|
||||||
|
GPUCMD_Add(header, ¶m, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/// Adds a masked register write to the current command buffer.
|
/// Adds a masked register write to the current command buffer.
|
||||||
#define GPUCMD_AddMaskedWrite(reg, mask, val) GPUCMD_AddSingleParam(GPUCMD_HEADER(0, (mask), (reg)), (val))
|
#define GPUCMD_AddMaskedWrite(reg, mask, val) GPUCMD_AddSingleParam(GPUCMD_HEADER(0, (mask), (reg)), (val))
|
||||||
|
Loading…
Reference in New Issue
Block a user