Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add support for bit operators on vectors of integers #34

Open
6 tasks
SirLynix opened this issue Dec 31, 2023 · 0 comments
Open
6 tasks

[Feature] Add support for bit operators on vectors of integers #34

SirLynix opened this issue Dec 31, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@SirLynix
Copy link
Contributor

Add support for bit operators (&, |, ~, <<, >>) on vector of integers.

  1. Implement bitwise operators to the nzsl::Vector class (component-wise), beware of right shifting on integer which should be arithmetic (see BinaryShiftRightBase in ConstantPropagationVisitorBinaryArithmetics.cpp)
  2. Extend sanitization rules to allow Vector of integers on bitwise ops.
  3. Extend GLSL, NZSL and SPIR-V generation (mostly improve the assertions)
  4. Implement constant propagation on vector of i32 and u32 (reuse the BinaryShiftRightBase and extends it)
  5. Add some tests in ArithmeticTests (extends "Bitwise operations", "Unary operators")
  6. Add some tests in OptimizationTests (add a new section "propagating vector constants bitwise")
@SirLynix SirLynix added enhancement New feature or request good first issue Good for newcomers labels Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant