@@ -93,24 +93,7 @@ export type TgpuFragmentFnShell<
9393 & ( (
9494 strings : TemplateStringsArray ,
9595 ...values : unknown [ ]
96- ) => TgpuFragmentFn < OmitBuiltins < FragmentIn > , FragmentOut > )
97- & {
98- /**
99- * @deprecated Invoke the shell as a function instead.
100- */
101- does :
102- & ( (
103- implementation : ( input : InferIO < FragmentIn > ) => InferIO < FragmentOut > ,
104- ) => TgpuFragmentFn < OmitBuiltins < FragmentIn > , FragmentOut > )
105- & /**
106- * @param implementation
107- * Raw WGSL function implementation with header and body
108- * without `fn` keyword and function name
109- * e.g. `"(x: f32) -> f32 { return x; }"`;
110- */ ( (
111- implementation : string ,
112- ) => TgpuFragmentFn < OmitBuiltins < FragmentIn > , FragmentOut > ) ;
113- } ;
96+ ) => TgpuFragmentFn < OmitBuiltins < FragmentIn > , FragmentOut > ) ;
11497
11598export interface TgpuFragmentFn <
11699 Varying extends FragmentInConstrained = FragmentInConstrained ,
@@ -170,9 +153,10 @@ export function fragmentFn<
170153 ...values : unknown [ ]
171154 ) => createFragmentFn ( shell , stripTemplate ( arg , ...values ) ) ;
172155
173- return Object . assign ( Object . assign ( call , shell ) , {
174- does : call ,
175- } ) as TgpuFragmentFnShell < FragmentIn , FragmentOut > ;
156+ return Object . assign ( call , shell ) as TgpuFragmentFnShell <
157+ FragmentIn ,
158+ FragmentOut
159+ > ;
176160}
177161
178162// --------------
0 commit comments