mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
23 lines
460 B
C
23 lines
460 B
C
#pragma once
|
|
#include "ioctl.h"
|
|
|
|
typedef nvioctl_fence NvFence;
|
|
|
|
typedef struct {
|
|
u32 num_fences;
|
|
NvFence fences[4];
|
|
} NvMultiFence;
|
|
|
|
Result nvFenceInit(void);
|
|
void nvFenceExit(void);
|
|
u32 nvFenceGetFd(void);
|
|
|
|
Result nvFenceWait(NvFence* f, s32 timeout_us);
|
|
|
|
static inline void nvMultiFenceCreate(NvMultiFence* mf, const NvFence* fence) {
|
|
mf->num_fences = 1;
|
|
mf->fences[0] = *fence;
|
|
}
|
|
|
|
Result nvMultiFenceWait(NvMultiFence* mf, s32 timeout_us);
|