GL_KHR_vulkan_glsl.txt Fix texture lookup functions.
This commit is contained in:
parent
e29c2489e2
commit
70a8a73a45
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue