mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
VideoBackends:OGL: Add support for vertex shader point and line expansion
This commit is contained in:
parent
3a5901d12e
commit
9624479933
@ -423,6 +423,8 @@ Renderer::Renderer(std::unique_ptr<GLContext> main_gl_context, float backbuffer_
|
|||||||
((GLExtensions::Version() >= 310) || GLExtensions::Supports("GL_NV_primitive_restart"));
|
((GLExtensions::Version() >= 310) || GLExtensions::Supports("GL_NV_primitive_restart"));
|
||||||
g_Config.backend_info.bSupportsFragmentStoresAndAtomics =
|
g_Config.backend_info.bSupportsFragmentStoresAndAtomics =
|
||||||
GLExtensions::Supports("GL_ARB_shader_storage_buffer_object");
|
GLExtensions::Supports("GL_ARB_shader_storage_buffer_object");
|
||||||
|
g_Config.backend_info.bSupportsVSLinePointExpand =
|
||||||
|
GLExtensions::Supports("GL_ARB_shader_storage_buffer_object");
|
||||||
g_Config.backend_info.bSupportsGSInstancing = GLExtensions::Supports("GL_ARB_gpu_shader5");
|
g_Config.backend_info.bSupportsGSInstancing = GLExtensions::Supports("GL_ARB_gpu_shader5");
|
||||||
g_Config.backend_info.bSupportsSSAA = GLExtensions::Supports("GL_ARB_gpu_shader5") &&
|
g_Config.backend_info.bSupportsSSAA = GLExtensions::Supports("GL_ARB_gpu_shader5") &&
|
||||||
GLExtensions::Supports("GL_ARB_sample_shading");
|
GLExtensions::Supports("GL_ARB_sample_shading");
|
||||||
|
@ -58,6 +58,11 @@ bool VertexManager::Initialize()
|
|||||||
|
|
||||||
m_vertex_buffer = StreamBuffer::Create(GL_ARRAY_BUFFER, VERTEX_STREAM_BUFFER_SIZE);
|
m_vertex_buffer = StreamBuffer::Create(GL_ARRAY_BUFFER, VERTEX_STREAM_BUFFER_SIZE);
|
||||||
m_index_buffer = StreamBuffer::Create(GL_ELEMENT_ARRAY_BUFFER, INDEX_STREAM_BUFFER_SIZE);
|
m_index_buffer = StreamBuffer::Create(GL_ELEMENT_ARRAY_BUFFER, INDEX_STREAM_BUFFER_SIZE);
|
||||||
|
if (g_ActiveConfig.UseVSForLinePointExpand() ||
|
||||||
|
g_ActiveConfig.backend_info.bSupportsDynamicVertexLoader)
|
||||||
|
{
|
||||||
|
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 1, m_vertex_buffer->GetGLBufferId());
|
||||||
|
}
|
||||||
|
|
||||||
if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
|
if (g_ActiveConfig.backend_info.bSupportsPaletteConversion)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user