8e756f379c
Uses the pipeline-stage callback mechanism. It mangles the type name (with a test to verify that this works), and then calls defineStruct with the entire SkSL struct definition string. Bug: skia:10939 Change-Id: If14cf1b11faaa80ad8d4086cdacf68532bac43fc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/368809 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
52 lines
467 B
GLSL
52 lines
467 B
GLSL
|
|
struct S1 {
|
|
int x;
|
|
};
|
|
struct S2 {
|
|
S1 x;
|
|
};
|
|
struct S3 {
|
|
S2 x;
|
|
};
|
|
struct S4 {
|
|
S3 x;
|
|
};
|
|
struct S5 {
|
|
S4 x;
|
|
};
|
|
struct S6 {
|
|
S5 x;
|
|
};
|
|
struct S7 {
|
|
S6 x;
|
|
};
|
|
struct S8 {
|
|
S7 x;
|
|
};
|
|
in S8 s8;
|
|
struct SA1 {
|
|
int x[8];
|
|
};
|
|
struct SA2 {
|
|
SA1 x[7];
|
|
};
|
|
struct SA3 {
|
|
SA2 x[6];
|
|
};
|
|
struct SA4 {
|
|
SA3 x[5];
|
|
};
|
|
struct SA5 {
|
|
SA4 x[4];
|
|
};
|
|
struct SA6 {
|
|
SA5 x[3];
|
|
};
|
|
struct SA7 {
|
|
SA6 x[2];
|
|
};
|
|
struct SA8 {
|
|
SA7 x[1];
|
|
};
|
|
in SA8 sa8[9];
|