summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_device.h
blob: 78ff5ee580844972bbd3696d2582cfd779ba8aee (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
26
27
28
29
30
// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <cstddef>

namespace OpenGL {

class Device {
public:
    Device();

    std::size_t GetUniformBufferAlignment() const {
        return uniform_buffer_alignment;
    }

    bool HasVariableAoffi() const {
        return has_variable_aoffi;
    }

private:
    static bool TestVariableAoffi();

    std::size_t uniform_buffer_alignment{};
    bool has_variable_aoffi{};
};

} // namespace OpenGL