-
Notifications
You must be signed in to change notification settings - Fork 935
Closed
Description
Didn't see this mentionned in #362:
- Struct members are not supported (such as
Test.T1()in the next example) - Optional:
classkeyword doesn't work (I thinkclassandstructare the same thing?)
struct Test
{
float4 T;
float4 T1(float4 a)
{
return T + a;
}
};
float4 PSMain() : SV_Target0 {
Test test;
test.T = 3.0f;
return test.T1(5.0f);
}ERROR: test.frag:4: ',' : Expected
ERROR: test.frag:4: 'struct member declarations' : Expected
test.frag(4): error at column 14, HLSL parsing failed.
Metadata
Metadata
Assignees
Labels
No labels