Skip to content
Merged
Prev Previous commit
Next Next commit
Update unstruct type
  • Loading branch information
Aleksander Katan committed Aug 7, 2025
commit e3e328910c13b78edd8d36a99c23745c9dfa293c
1 change: 1 addition & 0 deletions packages/typegpu/src/data/dataTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface Unstruct<
TProps extends Record<string, wgsl.BaseData> = any,
> extends wgsl.BaseData, TgpuNamable {
(props: Prettify<InferRecord<TProps>>): Prettify<InferRecord<TProps>>;
(): Prettify<InferRecord<TProps>>;
readonly type: 'unstruct';
readonly propTypes: TProps;

Expand Down