1617a3babSopenharmony_ci#version 450 core
2617a3babSopenharmony_ci#extension GL_EXT_samplerless_texture_functions : enable
3617a3babSopenharmony_ci
4617a3babSopenharmony_cilayout(binding = 1) uniform texture2D tex2D;
5617a3babSopenharmony_cilayout(binding = 1) uniform texture2DMS texMS;
6617a3babSopenharmony_cilayout(binding = 0) uniform textureBuffer buf;
7617a3babSopenharmony_ci
8617a3babSopenharmony_civoid main()
9617a3babSopenharmony_ci{
10617a3babSopenharmony_ci    vec4 tex2DFetch = texelFetch(tex2D, ivec2(0, 0), 0);
11617a3babSopenharmony_ci    vec4 texMSFetch = texelFetch(texMS, ivec2(0, 0), 0);
12617a3babSopenharmony_ci    vec4 bufFetch = texelFetch(buf, 0);
13617a3babSopenharmony_ci
14617a3babSopenharmony_ci    vec4 tex2DFetchOffset = texelFetchOffset(tex2D, ivec2(0, 0), 0, ivec2(0, 0));
15617a3babSopenharmony_ci
16617a3babSopenharmony_ci    ivec2 tex2DSize = textureSize(tex2D, 0);
17617a3babSopenharmony_ci    ivec2 texMSSize = textureSize(texMS);
18617a3babSopenharmony_ci    int bufSize = textureSize(buf);
19617a3babSopenharmony_ci
20617a3babSopenharmony_ci    int tex2DLevels = textureQueryLevels(tex2D);
21617a3babSopenharmony_ci
22617a3babSopenharmony_ci    int texMSSamples = textureSamples(texMS);
23617a3babSopenharmony_ci}
24