()
| 42 | } |
| 43 | |
| 44 | getUserCode(): string { |
| 45 | const sourceCoords = getSourceCoords(this.rank, 'uniforms.'); |
| 46 | |
| 47 | const userCode = ` |
| 48 | ${main('index')} { |
| 49 | if (index < uniforms.size) { |
| 50 | let resRC = getCoordsFromIndex(index); |
| 51 | setOutputAtIndex(index, getA(${sourceCoords})); |
| 52 | } |
| 53 | } |
| 54 | `; |
| 55 | return userCode; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | function getSourceCoords(rank: number, uniformPrefix = ''): string { |
nothing calls this directly
no test coverage detected