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
@@ -67,8 +67,8 @@ void main() {
67
67
// | pos[2] | pos[3] |
68
68
// +--------+--------+
69
69
uint16_t pos[TILE_SIZE_X * TILE_SIZE_Y * 2 ];
70
- for (uint16_t y = 0us , i = 0us ; y < TILE_SIZE_Y; ++ y) {
71
- for (uint16_t x = 0us ; x < TILE_SIZE_X; ++ x) {
70
+ for (uint16_t y = uint16_t( 0 ) , i = uint16_t( 0 ) ; y < TILE_SIZE_Y; ++ y) {
71
+ for (uint16_t x = uint16_t( 0 ) ; x < TILE_SIZE_X; ++ x) {
72
72
pos[i * 2 ] = out_pos_xy[0 ] * TILE_SIZE_X + x;
73
73
pos[i * 2 + 1 ] = out_pos_xy[1 ] * TILE_SIZE_Y + y;
74
74
i++ ;
You can’t perform that action at this time.
0 commit comments