File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
backends/vulkan/runtime/graph/ops/glsl Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#define VEC4_T ${texel_type(DTYPE)}
16
16
17
- #define TILE_SIZE_X ${TILE_SIZE_X}us
18
- #define TILE_SIZE_Y ${TILE_SIZE_Y}us
17
+ #define TILE_SIZE_X uint16_t( ${TILE_SIZE_X})
18
+ #define TILE_SIZE_Y uint16_t( ${TILE_SIZE_Y})
19
19
20
20
#define op(X, A, B) ${OPERATOR}
21
21
@@ -66,8 +66,8 @@ void main() {
66
66
// | pos[2] | pos[3] |
67
67
// +--------+--------+
68
68
uint16_t pos[TILE_SIZE_X * TILE_SIZE_Y * 2 ];
69
- for (uint16_t y = 0us , i = 0us ; y < TILE_SIZE_Y; ++ y) {
70
- for (uint16_t x = 0us ; x < TILE_SIZE_X; ++ x) {
69
+ for (uint16_t y = uint16_t( 0 ) , i = uint16_t( 0 ) ; y < TILE_SIZE_Y; ++ y) {
70
+ for (uint16_t x = uint16_t( 0 ) ; x < TILE_SIZE_X; ++ x) {
71
71
pos[i * 2 ] = uint16_t(out_pos[0 ]) * TILE_SIZE_X + x;
72
72
pos[i * 2 + 1 ] = uint16_t(out_pos[1 ]) * TILE_SIZE_Y + y;
73
73
i++ ;
You can’t perform that action at this time.
0 commit comments