summaryrefslogtreecommitdiff
path: root/tests/parser/cast-precedence.hlsl
blob: d5d0b0322cc296430e06f6496d4ce2ee9e84d153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:COMPARE_HLSL: -profile vs_5_0

// Confirm that type-cast expressions parse with
// the appropriate precedence.

cbuffer C : register(b0)
{
	float a;
	float b;
};

float4 main() : SV_Position
{
	return (uint) a / b;
}