• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 450 core
2#extension GL_EXT_samplerless_texture_functions : enable
3
4layout(binding = 1) uniform texture2D tex2D;
5layout(binding = 1) uniform texture2DMS texMS;
6layout(binding = 0) uniform textureBuffer buf;
7
8void main()
9{
10    vec4 tex2DFetch = texelFetch(tex2D, ivec2(0, 0), 0);
11    vec4 texMSFetch = texelFetch(texMS, ivec2(0, 0), 0);
12    vec4 bufFetch = texelFetch(buf, 0);
13
14    vec4 tex2DFetchOffset = texelFetchOffset(tex2D, ivec2(0, 0), 0, ivec2(0, 0));
15
16    ivec2 tex2DSize = textureSize(tex2D, 0);
17    ivec2 texMSSize = textureSize(texMS);
18    int bufSize = textureSize(buf);
19
20    int tex2DLevels = textureQueryLevels(tex2D);
21
22    int texMSSamples = textureSamples(texMS);
23}
24