yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

gl_device: Query SSBO alignment

This commit is contained in:
ReinUsesLisp 2019-06-01 17:41:55 -03:00
parent d14fbfb9b5
commit 02ab844934
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ T GetInteger(GLenum pname) {
Device::Device() { Device::Device() {
uniform_buffer_alignment = GetInteger<std::size_t>(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT); uniform_buffer_alignment = GetInteger<std::size_t>(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT);
shader_storage_alignment = GetInteger<std::size_t>(GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT);
max_vertex_attributes = GetInteger<u32>(GL_MAX_VERTEX_ATTRIBS); max_vertex_attributes = GetInteger<u32>(GL_MAX_VERTEX_ATTRIBS);
max_varyings = GetInteger<u32>(GL_MAX_VARYING_VECTORS); max_varyings = GetInteger<u32>(GL_MAX_VARYING_VECTORS);
has_variable_aoffi = TestVariableAoffi(); has_variable_aoffi = TestVariableAoffi();

View File

@ -18,6 +18,10 @@ public:
return uniform_buffer_alignment; return uniform_buffer_alignment;
} }
std::size_t GetShaderStorageBufferAlignment() const {
return shader_storage_alignment;
}
u32 GetMaxVertexAttributes() const { u32 GetMaxVertexAttributes() const {
return max_vertex_attributes; return max_vertex_attributes;
} }
@ -39,6 +43,7 @@ private:
static bool TestComponentIndexingBug(); static bool TestComponentIndexingBug();
std::size_t uniform_buffer_alignment{}; std::size_t uniform_buffer_alignment{};
std::size_t shader_storage_alignment{};
u32 max_vertex_attributes{}; u32 max_vertex_attributes{};
u32 max_varyings{}; u32 max_varyings{};
bool has_variable_aoffi{}; bool has_variable_aoffi{};