Fix #2264: OpEntryPoint incorrectly including function parameters.
This commit is contained in:
15
Test/spv.1.4.OpEntryPoint.opaqueParams.vert
Normal file
15
Test/spv.1.4.OpEntryPoint.opaqueParams.vert
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user