Initial commit.
This commit is contained in:
18
tests/reference-assignment-struct-unsized-array-as-ptr.ispc
Normal file
18
tests/reference-assignment-struct-unsized-array-as-ptr.ispc
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
|
||||
|
||||
struct Foo {
|
||||
uniform float array[];
|
||||
};
|
||||
|
||||
export void f_fu(uniform float ret[], uniform float a[], uniform float b) {
|
||||
Foo f;
|
||||
f.array = ret;
|
||||
f.array[programIndex] = b;
|
||||
}
|
||||
|
||||
export void result(uniform float r[]) {
|
||||
r[programIndex] = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user