KhronosGroup / KhronosGroup/GLSL

Improper example for input variable declaration in VS in ESSL 3.20 spec

Open
#159 3 comments 1 reaction 1 assignee Claimed by @gnl21 View on GitHub
OpenGL ES Resolving Inside Khronos
Dominant language
JavaScript
Stars
458
Forks
114
Avg merge
4m
Merged PRs (30d)
1

Description

I read about input variable type for vertex shader in GLSL_ES_Specification_3.20

the section below quotes from 4.3.4. Input Variables at P48:

It is a compile-time error to declare a vertex shader input with, or that contains, any of the
following types:
• A boolean type
• An opaque type
• An array
• A structure
Example declarations in a vertex shader:
```
in vec4 position;
in vec3 normal;
in vec2 texCoord[4];
```

I wonder that if the last one of examples `texCoord[4]` should be there. Is that a copy-paste error?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.