diff --git a/doc/specs/misc/GL_KHR_vulkan_glsl.txt b/doc/specs/misc/GL_KHR_vulkan_glsl.txt index 835d4ac2..b3f2ea84 100644 --- a/doc/specs/misc/GL_KHR_vulkan_glsl.txt +++ b/doc/specs/misc/GL_KHR_vulkan_glsl.txt @@ -162,7 +162,7 @@ Overview Constructors can then be used to combine a sampler and a texture at the point of making a texture lookup call: - texture2D(sampler2D(t, s), ...); + texture(sampler2D(t, s), ...); Note, layout() information is omitted above for clarity of this feature. @@ -956,7 +956,7 @@ Changes to Chapter 5 of the OpenGL Shading Language Specification layout(...) uniform texture2D t; // handle to a texture in vec2 tCoord; ... - texture2D(sampler2D(t, s), tCoord); + texture(sampler2D(t, s), tCoord); The result of a sampler constructor cannot be assigned to a variable: