io7m
io7m-jparasol
0.11.3
4.11. Record
4. Expressions
4.13. Matrix Column Access
Previous
Up
Next
4.12
Swizzle
4.12.1
Description
1
A
swizzle_expression
selects one or more named components of an expression of a
vector
type, returning either a scalar value, or another
vector
.
4.12.2
Type rules
1
For
swizzle_expressions
, special type rules apply as described in the
Vectors
section of the
Types
section.
4.12.3
Operational semantics
1
For a
swizzle_expression
e
, the left hand side of the expression is evaluated, by rule
swizzle_pre
, and the resulting expression is a new vector or scalar value.
4.12.3.1. Swizzle semantics (swizzle)
Previous
Up
Next
4.11. Record
4. Expressions
4.13. Matrix Column Access