Skip to content

Commit ffe904e

Browse files
authored
Merge branch 'KhronosGroup:main' into grammar
2 parents 0048a82 + fe060b9 commit ffe904e

6 files changed

Lines changed: 15 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
out

README.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,8 @@ that do not live in the Khronos registries for OpenGL or OpenGL ES.
8484
- link:{repo}/nv/GLSL_NV_displacement_micromap.txt[GL_NV_displacement_micromap]
8585
- link:{repo}/ext/GL_EXT_maximal_reconvergence.txt[GL_EXT_maximal_reconvergence]
8686
- link:{repo}/ext/GLSL_EXT_spec_constant_composites.txt[GL_EXT_spec_constant_composites]
87+
- link:{repo}/ext/GLSL_EXT_shader_atomic_float2.txt[GLSL_EXT_shader_atomic_float2]
88+
- link:{repo}/ext/GLSL_EXT_shader_tile_image.txt[GLSL_EXT_shader_tile_image]
89+
- link:{repo}/ext/GLSL_EXT_spirv_intrinsics.txt[GLSL_EXT_spirv_intrinsics]
90+
- link:{repo}/ext/GL_EXT_control_flow_attributes2.txt[GL_EXT_control_flow_attributes2]
91+
- link:{repo}/ext/GL_EXT_shader_atomic_int64.txt[GL_EXT_shader_atomic_int64]

chapters/builtinfunctions.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ endif::GLSL[]
349349
genIType *min*(genIType _x_, int _y_) +
350350
genUType *min*(genUType _x_, genUType _y_) +
351351
genUType *min*(genUType _x_, uint _y_)
352-
| Returns _y_ if _y_ < _x;_ otherwise it returns _x_.
352+
| Returns _y_ if _y_ < _x;_ otherwise it returns _x_. Which operand is the result is undefined if one of the operands is a NaN.
353353
| genFType *max*(genFType _x_, genFType _y_) +
354354
genFType *max*(genFType _x_, float _y_) +
355355
ifdef::GLSL[]
@@ -360,7 +360,7 @@ endif::GLSL[]
360360
genIType *max*(genIType _x_, int _y_) +
361361
genUType *max*(genUType _x_, genUType _y_) +
362362
genUType *max*(genUType _x_, uint _y_)
363-
| Returns _y_ if _x_ < _y;_ otherwise it returns _x_.
363+
| Returns _y_ if _x_ < _y;_ otherwise it returns _x_. Which operand is the result is undefined if one of the operands is a NaN.
364364
| genFType *clamp*(genFType _x_, genFType _minVal_, genFType _maxVal_) +
365365
genFType *clamp*(genFType _x_, float _minVal_, float _maxVal_) +
366366
ifdef::GLSL[]
@@ -988,7 +988,7 @@ Such properties are taken into account as the texture is accessed via the
988988
built-in functions defined below.
989989

990990
Texture data can be stored by the GL as single-precision floating-point,
991-
unsigned normalized integer, unsigned integer or signed integer data.
991+
normalized integer, unsigned integer or signed integer data.
992992
This is determined by the type of the internal format of the texture.
993993

994994
Texture lookup functions are provided that can return their result as
@@ -1455,7 +1455,7 @@ endif::GLSL[]
14551455
See *textureProj*, *textureLod*, and *textureOffset*.
14561456
|
14571457
ifdef::GLSL[]
1458-
gvec4 *textureGrad*(gsampler1D _sampler_, _float _P_, float _dPdx_, float _dPdy_) +
1458+
gvec4 *textureGrad*(gsampler1D _sampler_, float _P_, float _dPdx_, float _dPdy_) +
14591459
endif::GLSL[]
14601460
gvec4 *textureGrad*(gsampler2D _sampler_, vec2 _P_, vec2 _dPdx_, vec2 _dPdy_) +
14611461
gvec4 *textureGrad*(gsampler3D _sampler_, vec3 _P_, vec3 _dPdx_, vec3 _dPdy_) +

chapters/grammar.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ _switch_statement_ : ::
637637
_RIGHT_BRACE_
638638

639639
_switch_statement_list_ : ::
640-
/* _nothing_ */ +
640+
/* _empty_ */ +
641641
_statement_list_
642642

643643
_case_label_ : ::
@@ -656,8 +656,8 @@ _for_init_statement_ : ::
656656
_declaration_
657657

658658
_conditionopt_ : ::
659-
_condition_ +
660-
/* _empty_ */
659+
/* _empty_ */ +
660+
_condition_
661661

662662
_for_rest_statement_ : ::
663663
_conditionopt_ _SEMICOLON_ +

chapters/spirvmappings.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ can be made by operations on scalars:
118118

119119
layout(constant_id = 18) const int scX = 1;
120120
layout(constant_id = 19) const int scZ = 1;
121-
const vec3 scVec = vec3(scX, 1, scZ); // partially specialized vector
121+
const ivec3 scVec = ivec3(scX, 1, scZ); // partially specialized vector
122122

123123
A built-in variable can have a _constant_id_ attached to it:
124124

extensions/khr/GL_KHR_vulkan_glsl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Overview
179179

180180
layout(constant_id = 18) const int scX = 1;
181181
layout(constant_id = 19) const int scZ = 1;
182-
const vec3 scVec = vec3(scX, 1, scZ); // partially specialized vector
182+
const ivec3 scVec = ivec3(scX, 1, scZ); // partially specialized vector
183183

184184
A built-in variable can have a 'constant_id' attached to it:
185185

0 commit comments

Comments
 (0)