libnx
v4.7.0
include
switch
nvidia
fence.h
1
#pragma once
2
#include "ioctl.h"
3
4
typedef
nvioctl_fence
NvFence
;
5
6
typedef
struct
{
7
u32
num_fences;
8
NvFence
fences[4];
9
}
NvMultiFence
;
10
11
Result
nvFenceInit(
void
);
12
void
nvFenceExit(
void
);
13
14
Result
nvFenceWait(
NvFence
* f,
s32
timeout_us);
15
16
static
inline
void
nvMultiFenceCreate(
NvMultiFence
* mf,
const
NvFence
* fence) {
17
mf->num_fences = 1;
18
mf->fences[0] = *fence;
19
}
20
21
Result
nvMultiFenceWait(
NvMultiFence
* mf,
s32
timeout_us);
NvMultiFence
Definition:
fence.h:6
nvioctl_fence
Definition:
ioctl.h:125
Result
u32 Result
Function error code result type.
Definition:
types.h:44
s32
int32_t s32
32-bit signed integer.
Definition:
types.h:27
u32
uint32_t u32
32-bit unsigned integer.
Definition:
types.h:21
Generated by
1.9.1