mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
0320d090e2
E.g., in float float; (float) * float; The "(float)" is not a type cast, it is an expression.
32 lines
587 B
GLSL
32 lines
587 B
GLSL
|
|
struct foo_t {
|
|
float float;
|
|
};
|
|
|
|
float fn(float float) { return float; }
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
float float = 7;
|
|
bool bool[2] = { float, float };
|
|
int int = bool[1];
|
|
uint uint = float + int;
|
|
min16float min16float = uint;
|
|
min10float min10float = min16float;
|
|
half half = 0.5;
|
|
|
|
{
|
|
foo_t float;
|
|
float.float = 42;
|
|
}
|
|
|
|
bool[0] = bool[1];
|
|
|
|
float = float + int + uint + min16float + min10float + (bool[0] ? int : float) + fn(float);
|
|
|
|
half2x3 half2x3;
|
|
half2x3._11 = (float) * float;
|
|
|
|
return float + half2x3._11;
|
|
}
|