summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdata.h
blob: 7e1dce232d18da5720ba75b023bdc1e03886a5e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <array>
#include "common/common_types.h"

namespace Service::Nvidia {

struct Fence {
    s32 id;
    u32 value;
};

static_assert(sizeof(Fence) == 8, "Fence has wrong size");

struct MultiFence {
    u32 num_fences;
    std::array<Fence, 4> fences;
};

enum class NvResult : u32 {
    Success = 0,
    TryAgain = 11,
};

} // namespace Service::Nvidia