Minor improvements
This commit is contained in:
parent
dfaaa08433
commit
7bbb5f2d96
11 changed files with 93 additions and 76 deletions
|
|
@ -3,7 +3,7 @@ import { Insights } from '../../rendering/insights';
|
|||
const extensions: Map<string, any> = new Map();
|
||||
|
||||
const logExtensions = () => {
|
||||
const values = {};
|
||||
const values: any = {};
|
||||
for (const [k, v] of extensions.entries()) {
|
||||
values[k] = v !== null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,13 @@ export class UniformArrayAutoScalingProgram implements IProgram {
|
|||
descriptors: Array<DrawableDescriptor>
|
||||
): string {
|
||||
return combination
|
||||
.map((v, i) => `#define ${descriptors[i].uniformCountMacroName} ${v}`)
|
||||
.map(
|
||||
(v, i) => `
|
||||
#ifndef ${descriptors[i].uniformCountMacroName}
|
||||
#define ${descriptors[i].uniformCountMacroName} ${v}
|
||||
#endif
|
||||
`
|
||||
)
|
||||
.join('\n');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue