Commit 38497f1
committed
Update base for Update on "[ET-VK] Introduce generalized shaders for transfer ops and use it for select and slice"
## Changes
* Introduce `transfer_buffer.glsl` and `transfer_texture.glsl`, and `Transfer.cpp` which generalizes shaders where each element of the output is copied from a unique element of the input.
* Update `Slice.cpp` and `Select.cpp` to use `Transfer.cpp`
* Remove old implementations of slice and select
## Motivation
With this new implementation, the op can now support both buffers and textures of any packing. There are also benefits of code consolidation.
Differential Revision: [D75686050](https://our.internmc.facebook.com/intern/diff/D75686050/)
[ghstack-poisoned]1 parent 1e457da commit 38497f1
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
1663 | | - | |
1664 | 1663 | | |
1665 | | - | |
| 1664 | + | |
1666 | 1665 | | |
1667 | 1666 | | |
1668 | 1667 | | |
| |||
0 commit comments