Semantic checks: ES doesn't have unsized arrays or noise*().
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21998 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
3da5a3267e
commit
fb7044a9a8
8 changed files with 73 additions and 43 deletions
|
|
@ -594,27 +594,29 @@ void TBuiltIns::initialize(int version, EProfile profile)
|
|||
//
|
||||
// Noise functions.
|
||||
//
|
||||
s.append(TString("float noise1(float x);"));
|
||||
s.append(TString("float noise1(vec2 x);"));
|
||||
s.append(TString("float noise1(vec3 x);"));
|
||||
s.append(TString("float noise1(vec4 x);"));
|
||||
if (profile != EEsProfile) {
|
||||
s.append(TString("float noise1(float x);"));
|
||||
s.append(TString("float noise1(vec2 x);"));
|
||||
s.append(TString("float noise1(vec3 x);"));
|
||||
s.append(TString("float noise1(vec4 x);"));
|
||||
|
||||
s.append(TString("vec2 noise2(float x);"));
|
||||
s.append(TString("vec2 noise2(vec2 x);"));
|
||||
s.append(TString("vec2 noise2(vec3 x);"));
|
||||
s.append(TString("vec2 noise2(vec4 x);"));
|
||||
s.append(TString("vec2 noise2(float x);"));
|
||||
s.append(TString("vec2 noise2(vec2 x);"));
|
||||
s.append(TString("vec2 noise2(vec3 x);"));
|
||||
s.append(TString("vec2 noise2(vec4 x);"));
|
||||
|
||||
s.append(TString("vec3 noise3(float x);"));
|
||||
s.append(TString("vec3 noise3(vec2 x);"));
|
||||
s.append(TString("vec3 noise3(vec3 x);"));
|
||||
s.append(TString("vec3 noise3(vec4 x);"));
|
||||
s.append(TString("vec3 noise3(float x);"));
|
||||
s.append(TString("vec3 noise3(vec2 x);"));
|
||||
s.append(TString("vec3 noise3(vec3 x);"));
|
||||
s.append(TString("vec3 noise3(vec4 x);"));
|
||||
|
||||
s.append(TString("vec4 noise4(float x);"));
|
||||
s.append(TString("vec4 noise4(vec2 x);"));
|
||||
s.append(TString("vec4 noise4(vec3 x);"));
|
||||
s.append(TString("vec4 noise4(vec4 x);"));
|
||||
s.append(TString("vec4 noise4(float x);"));
|
||||
s.append(TString("vec4 noise4(vec2 x);"));
|
||||
s.append(TString("vec4 noise4(vec3 x);"));
|
||||
s.append(TString("vec4 noise4(vec4 x);"));
|
||||
|
||||
s.append(TString("\n"));
|
||||
s.append(TString("\n"));
|
||||
}
|
||||
}
|
||||
{
|
||||
//============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue