HLSL: Error if funcion with return type doesn't return a value.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user