What are the valid types for a WebGL vertex shader attribute?
问题 The following attribute seems fine: attribute vec4 coord; The following attribute complains that an attribute "cannot be bool or int": attribute int ty; The following attribute complains of a "syntax error": attribute uint ty; These results seem quite arbitrary. I can't find a list of the valid types for vertex shader attributes. What are the rules for whether an attribute type is valid in WebGL? 回答1: OpenGL ES Shading Language 1.00 specification, page 36, section 4.3.3: "Attribute": The