2019-04-10 20:56:12 +02:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2019-04-10 23:03:52 +02:00
|
|
|
bool HasVariableAoffi() const {
|
|
|
|
return has_variable_aoffi;
|
|
|
|
}
|
|
|
|
|
2019-04-10 20:56:12 +02:00
|
|
|
private:
|
2019-04-10 23:03:52 +02:00
|
|
|
static bool TestVariableAoffi();
|
|
|
|
|
2019-04-10 20:56:12 +02:00
|
|
|
std::size_t uniform_buffer_alignment{};
|
2019-04-10 23:03:52 +02:00
|
|
|
bool has_variable_aoffi{};
|
2019-04-10 20:56:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace OpenGL
|