HLSL: Error if funcion with return type doesn't return a value.
This commit is contained in:
parent
1a4b775cd5
commit
a305166ea4
15 changed files with 73 additions and 53 deletions
|
|
@ -1,8 +1,9 @@
|
|||
void foo1() {}
|
||||
void foo2(void) {}
|
||||
|
||||
float4 PixelShaderFunction(float4 input) : COLOR0
|
||||
void PixelShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
foo1();
|
||||
foo2();
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue