Fix #2264: OpEntryPoint incorrectly including function parameters.

This commit is contained in:
John Kessenich
2020-06-10 07:15:24 -06:00
parent 68b2e15ee0
commit c30d335377
4 changed files with 101 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
#version 450
layout(binding = 0) uniform sampler2D s2D;
layout(binding = 1) uniform texture2D t2D;
layout(binding = 3) uniform sampler s;
vec2 funOpaque(in sampler2D s2D, texture2D t2D, sampler s)
{
return textureSize(s2D, 0) * texture(sampler2D(t2D, s), vec2(0.5)).xy;
}
void main()
{
vec2 size = funOpaque(s2D, t2D, s);
}