File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export type AssignmentOperator =
160160 | '&='
161161 | '**='
162162 | '||='
163- | '&&=' ;
163+ | '&&='
164+ | '>>>='
165+ | '??=' ;
164166
165167export type AssignmentExpression = readonly [
166168 type : NodeTypeCatalog [ 'assignmentExpr' ] ,
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ export function accessProp(
230230 }
231231
232232 if ( isVec ( target . dataType ) ) {
233+ // Example: d.vec3f().kind === 'vec3f'
233234 if ( propName === 'kind' ) {
234235 return snip ( target . dataType . type , UnknownData , 'constant' ) ;
235236 }
Original file line number Diff line number Diff line change @@ -111,6 +111,18 @@ const OP_MAP = {
111111 get '??' ( ) : never {
112112 throw new Error ( 'The `??` operator is unsupported in TypeGPU functions.' ) ;
113113 } ,
114+ //
115+ // assignment
116+ //
117+ get '>>>=' ( ) : never {
118+ throw new Error ( 'The `>>>=` operator is unsupported in TypeGPU functions.' ) ;
119+ } ,
120+ get '**=' ( ) : never {
121+ throw new Error ( 'The `**=` operator is unsupported in TypeGPU functions.' ) ;
122+ } ,
123+ get '??=' ( ) : never {
124+ throw new Error ( 'The `??=` operator is unsupported in TypeGPU functions.' ) ;
125+ } ,
114126} as Record < string , string > ;
115127
116128type Operator =
You can’t perform that action at this time.
0 commit comments