-
-
Notifications
You must be signed in to change notification settings - Fork 150
Open
Description
I can't find bitwise shift operators >>, <<
in shader-ast.
Is it not implemented yet?
I'm trying the workaround
export const lshift = <T extends "int" | "uint" | IVec | UVec>(
a: Term<T>,
b: IntTerm | UintTerm
) => op2("<<", a, b) as Op2<T>;
export const rshift = <T extends "int" | "uint" | IVec | UVec>(
a: Term<T>,
b: IntTerm | UintTerm
) => op2(">>", a, b) as Op2<T>;
Metadata
Metadata
Assignees
Labels
No labels