KhronosGroup / KhronosGroup/GLSL

Contradiction on whether equality operators operator on vectors

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
458
Forks
114
Avg merge
4m
Merged PRs (30d)
1

Description

Under 5.9 Expression, the specs state:

"The equality operators equal (==), and not equal (!=) operate on all types except opaque types, aggregates that contain opaque types, subroutine uniforms, and aggregates that contain subroutine uniforms. ... For vectors, matrices, structures, and arrays, all components, members, or elements of one operand must equal the corresponding components, members, or elements in the other operand for the operands to be considered equal."

Under 8.7. Vector Relational Functions, it states:

"Relational and equality operators (<, <=, >, >=, ==, !=) are defined to operate on scalars"

Contributor guide

Open the contributing guide

Research direction

Compare the quoted text in sections 5.9 Expression and 8.7 Vector Relational Functions of the specification. Determine which statement governs equality operators on vectors, then clarify the conflicting wording so both sections consistently describe the supported operands and semantics.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.