https://github.com/shader-slang/slang
Raw File
Tip revision: 172f3f0cc47b1f2f57c9c70a17209599d3a16bca authored by Tim Foley on 02 February 2018, 22:43:37 UTC
Fix bug when subscripting a type that must be split (#396)
Tip revision: 172f3f0
cast-precedence.hlsl
//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;
}
back to top