21.06.2014 Views

GLSLANG Spec 4.0 - OpenGL

GLSLANG Spec 4.0 - OpenGL

GLSLANG Spec 4.0 - OpenGL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Basics<br />

The following are the keywords reserved for future use. Using them will result in an error:<br />

common<br />

asm<br />

partition active<br />

class union enum typedef template this packed<br />

goto<br />

inline noinline volatile public static extern external interface<br />

long short half fixed unsigned superp<br />

input<br />

output<br />

hvec2 hvec3 hvec4 fvec2 fvec3 fvec4<br />

sampler3DRect<br />

filter<br />

image1D image2D image3D imageCube<br />

iimage1D iimage2D iimage3D iimageCube<br />

uimage1D uimage2D uimage3D uimageCube<br />

image1DArray<br />

image2DArray<br />

iimage1DArray iimage2DArray uimage1DArray uimage2DArray<br />

image1DShadow image2DShadow<br />

image1DArrayShadow<br />

image2DArrayShadow<br />

imageBuffer iimageBuffer uimageBuffer<br />

sizeof<br />

cast<br />

namespace<br />

row_major<br />

using<br />

In addition, all identifiers containing two consecutive underscores (__) are reserved as possible future<br />

keywords.<br />

3.7 Identifiers<br />

Identifiers are used for variable names, function names, structure names, and field selectors (field<br />

selectors select components of vectors and matrices similar to structure fields, as discussed in section 5.5<br />

“Vector Components” and section 5.6 “Matrix Components” ). Identifiers have the form<br />

identifier<br />

nondigit<br />

identifier nondigit<br />

identifier digit<br />

15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!