HLSL: Support semantics in function parameter declarations.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
float1 f1 = float1(1.0);
|
||||
float scalar = 2.0;
|
||||
|
||||
float1 ShaderFunction(float1 inFloat1, float inScalar) : COLOR0
|
||||
float1 ShaderFunction(float1 inFloat1 : COLOR, float inScalar) : COLOR0
|
||||
{
|
||||
return f1 * scalar + inFloat1 * inScalar;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user