HLSL: Error if funcion with return type doesn't return a value.
This commit is contained in:
@@ -6,12 +6,13 @@ gl_FragCoord origin is upper left
|
||||
0:1 Function Parameters:
|
||||
0:2 Function Definition: foo2( (global void)
|
||||
0:2 Function Parameters:
|
||||
0:5 Function Definition: PixelShaderFunction(vf4; (global 4-component vector of float)
|
||||
0:5 Function Definition: PixelShaderFunction(vf4; (global void)
|
||||
0:5 Function Parameters:
|
||||
0:5 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:6 Function Call: foo1( (global void)
|
||||
0:7 Function Call: foo2( (global void)
|
||||
0:8 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
@@ -25,17 +26,18 @@ gl_FragCoord origin is upper left
|
||||
0:1 Function Parameters:
|
||||
0:2 Function Definition: foo2( (global void)
|
||||
0:2 Function Parameters:
|
||||
0:5 Function Definition: PixelShaderFunction(vf4; (global 4-component vector of float)
|
||||
0:5 Function Definition: PixelShaderFunction(vf4; (global void)
|
||||
0:5 Function Parameters:
|
||||
0:5 'input' (layout(location=0 ) in 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:6 Function Call: foo1( (global void)
|
||||
0:7 Function Call: foo2( (global void)
|
||||
0:8 Branch: Return
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 12
|
||||
// Id's are bound by 13
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
|
||||
Reference in New Issue
Block a user