Resolve issue #700: allow initializers on struct members.
This commit is contained in:
parent
32fd5d26e3
commit
18adbdbbb8
4 changed files with 35 additions and 2 deletions
|
|
@ -34,3 +34,8 @@ float4 ShaderFunction(float4 input) : COLOR0
|
|||
|
||||
return input * a1;
|
||||
}
|
||||
|
||||
cbuffer Constants
|
||||
{
|
||||
float a = 1.0f, b, c = 2.0f;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue