Skip to content

Commit a163b7f

Browse files
rg3igaliaarcady-lunarg
authored andcommitted
Increase input_attachment_index limit
The new limit is INT_MAX, as opposed to UINT_MAX, because INT_MAX is large enough and there are other places in the code where the value of the limit is cast to int.
1 parent 2eb8a58 commit a163b7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

glslang/Include/Types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ class TQualifier {
966966
unsigned int layoutXfbOffset : 13;
967967
static const unsigned int layoutXfbOffsetEnd = 0x1FFF;
968968

969-
unsigned int layoutAttachment : 8; // for input_attachment_index
970-
static const unsigned int layoutAttachmentEnd = 0XFF;
969+
unsigned int layoutAttachment; // for input_attachment_index
970+
static const unsigned int layoutAttachmentEnd = INT_MAX;
971971

972972
unsigned int layoutSpecConstantId;
973973
static const unsigned int layoutSpecConstantIdEnd = UINT_MAX;

0 commit comments

Comments
 (0)