40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
bool different_types() {
|
|
float2x2 m;
|
|
float2 v;
|
|
float f;
|
|
return v == f || v == m || m == f ||
|
|
f == v || m == v || f == m ||
|
|
v != f || v != m || m != f ||
|
|
f != v || m != v || f != m ;
|
|
}
|
|
|
|
bool different_matrices() {
|
|
float2x2 m2;
|
|
float3x3 m3;
|
|
return m2 == m3 || m2 != m3;
|
|
}
|
|
|
|
bool different_vectors() {
|
|
float2 v2;
|
|
float3 v3;
|
|
return v2 == v3 || v2 != v3;
|
|
}
|
|
/*%%*
|
|
type mismatch: '==' cannot operate on 'float2', 'float'
|
|
type mismatch: '==' cannot operate on 'float2', 'float2x2'
|
|
type mismatch: '==' cannot operate on 'float2x2', 'float'
|
|
type mismatch: '==' cannot operate on 'float', 'float2'
|
|
type mismatch: '==' cannot operate on 'float2x2', 'float2'
|
|
type mismatch: '==' cannot operate on 'float', 'float2x2'
|
|
type mismatch: '!=' cannot operate on 'float2', 'float'
|
|
type mismatch: '!=' cannot operate on 'float2', 'float2x2'
|
|
type mismatch: '!=' cannot operate on 'float2x2', 'float'
|
|
type mismatch: '!=' cannot operate on 'float', 'float2'
|
|
type mismatch: '!=' cannot operate on 'float2x2', 'float2'
|
|
type mismatch: '!=' cannot operate on 'float', 'float2x2'
|
|
type mismatch: '==' cannot operate on 'float2x2', 'float3x3'
|
|
type mismatch: '!=' cannot operate on 'float2x2', 'float3x3'
|
|
type mismatch: '==' cannot operate on 'float2', 'float3'
|
|
type mismatch: '!=' cannot operate on 'float2', 'float3'
|
|
*%%*/
|