Skip to content

Clarify scalar constructor with non-scalar values. #310

@dj2

Description

@dj2

Constructor section of the spec says:

Scalar constructors with non-scalar parameters can be used to take the first element from a non-scalar.

It does not appear to list which non-scalar types are allowed. From testing in GLSLang it seems that vec and mat types can be used, but array and struct types cannot.

Should the spec be clarified to say vector or matrix instead of just non-scalar ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions