diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-20 07:16:38 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-10-20 07:19:30 +0200 |
commit | 3ec795d95ef0b265526dc922fef7be816270c3cf (patch) | |
tree | 30e2cffde9a7d285396937888fb33f162c902401 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Merge pull request #1501 from ReinUsesLisp/half-float (diff) | |
download | yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar.gz yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar.bz2 yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar.lz yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar.xz yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.tar.zst yuzu-3ec795d95ef0b265526dc922fef7be816270c3cf.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_gen.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 1e5eb32df..ecbc9d8ed 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -23,6 +23,8 @@ out gl_PerVertex { vec4 gl_Position; }; +layout (location = 0) out vec4 position; + layout(std140) uniform vs_config { vec4 viewport_flip; uvec4 instance_id; @@ -96,6 +98,9 @@ out gl_PerVertex { vec4 gl_Position; }; +layout (location = 0) in vec4 gs_position[]; +layout (location = 0) out vec4 position; + layout (std140) uniform gs_config { vec4 viewport_flip; uvec4 instance_id; @@ -131,6 +136,8 @@ layout(location = 5) out vec4 FragColor5; layout(location = 6) out vec4 FragColor6; layout(location = 7) out vec4 FragColor7; +layout (location = 0) in vec4 position; + layout (std140) uniform fs_config { vec4 viewport_flip; uvec4 instance_id; |