HLSL: Error if funcion with return type doesn't return a value.

This commit is contained in:
John Kessenich
2016-09-02 19:13:36 -06:00
parent 1a4b775cd5
commit a305166ea4
15 changed files with 73 additions and 53 deletions

View File

@@ -4,7 +4,7 @@ void foo(float f)
discard;
}
float4 PixelShaderFunction(float4 input) : COLOR0
void PixelShaderFunction(float4 input) : COLOR0
{
foo(input.z);
if (input.x)