Skip to content

Commit

Permalink
Merge pull request #248 from dj2/vec_example
Browse files Browse the repository at this point in the history
Fixup example to use `ivec3`.
  • Loading branch information
gnl21 authored Sep 25, 2024
2 parents c084993 + 73aedc9 commit fe060b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapters/spirvmappings.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ can be made by operations on scalars:

layout(constant_id = 18) const int scX = 1;
layout(constant_id = 19) const int scZ = 1;
const vec3 scVec = vec3(scX, 1, scZ); // partially specialized vector
const ivec3 scVec = ivec3(scX, 1, scZ); // partially specialized vector

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

Expand Down
2 changes: 1 addition & 1 deletion extensions/khr/GL_KHR_vulkan_glsl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Overview

layout(constant_id = 18) const int scX = 1;
layout(constant_id = 19) const int scZ = 1;
const vec3 scVec = vec3(scX, 1, scZ); // partially specialized vector
const ivec3 scVec = ivec3(scX, 1, scZ); // partially specialized vector

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

Expand Down

0 comments on commit fe060b9

Please sign in to comment.