UNPKG

262 BTypeScriptView Raw
1import { IUniform } from '@antv/g-webgpu-core';
2/**
3 * 考虑结构体命名, eg:
4 * a: { b: 1 } -> 'a.b'
5 * a: [ { b: 1 } ] -> 'a[0].b'
6 */
7export declare function extractUniforms(uniforms: {
8 [key: string]: IUniform;
9}): {
10 [key: string]: IUniform;
11};