summaryrefslogtreecommitdiff
path: root/ggml/src/vulkan-shaders/scale.comp
blob: 5cd2f668d01f3efe802c454ce225f046a31b0b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 450

#include "types.comp"
#include "generic_unary_head.comp"

void main() {
    const uint idx = get_idx();

    if (idx >= p.ne) {
        return;
    }

    data_d[p.d_offset + dst_idx(idx)] = D_TYPE(FLOAT_TYPE(data_a[src0_idx(idx)]) * FLOAT_TYPE(p.param1));
}