Commit ed2d377
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 b576071 commit ed2d377
File tree
2 files changed
+1
-1
lines changed- backends/vulkan/runtime
- graph
2 files changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | 572 | | |
574 | 573 | | |
575 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| 699 | + | |
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
0 commit comments