mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
15 lines
348 B
GLSL
15 lines
348 B
GLSL
#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);
|
|
} |