Fix xfb stride limit issue (#2088)

* Fix xfb_stride limit issue

Unsized array can't apply to transform trace. layout qualifier "offset" require GL_ARB_enhanced_layouts enable or glsl core version > 440.

* Add negative test for xfb limit

* update case result

* Fix compile information issue

Fix compile information issue and test comment issue.

* remove es profile condition, use profileRequires to limit.

* Fix xfb_stride limit issue

Unsized array can't apply to transform trace. layout qualifier "offset" require GL_ARB_enhanced_layouts enable or glsl core version > 440.
Add negative test for xfb limit

* Move es profile check out of version number check

* Adjust error information and related cases

remove the new version check, refine original version check.

* Revert condition for vulkan, and remove redundant test code.
This commit is contained in:
Roy.li
2020-06-09 16:30:14 +08:00
committed by GitHub
parent 8111268575
commit 08328fea5a
15 changed files with 294 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
#version 430 core
#extension GL_ARB_enhanced_layouts : require
layout (xfb_offset = 0) out vec4 xfb_buffer[]; // ERROR: unsized array cannot be used for an xfb buffer?
in vec4 in_vs;
out vec4 out_vs;
void main()
{
vec4 result = in_vs;
xfb_buffer[0] = result / 2;
out_vs = result;
}