Skip to content

Commit fe060b9

Browse files
authored
Merge pull request #248 from dj2/vec_example
Fixup example to use `ivec3`.
2 parents c084993 + 73aedc9 commit fe060b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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)