Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-vulkan/vulkan-shaders/mul_mat_vec_iface.glsl # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-vulkan / vulkan-shaders / mul_mat_vec_iface.glsl` 38 lines ยท 1223 bytes Raw Blame History 1 #include "types.glsl" 2 3 #define MAT_VEC_FUSION_FLAGS_BIAS0 0x1 4 #define MAT_VEC_FUSION_FLAGS_BIAS1 0x2 5 #define MAT_VEC_FUSION_FLAGS_SCALE0 0x4 6 #define MAT_VEC_FUSION_FLAGS_SCALE1 0x8 7 8 layout (binding = 0) readonly buffer A {A_TYPE data_a[];}; 9 #if defined(A_TYPEV4) 10 layout (binding = 0) readonly buffer AV4 {A_TYPEV4 data_a_v4[];}; 11 #endif 12 #if defined(A_TYPE_PACKED16) 13 layout (binding = 0) readonly buffer A_PACKED16 {A_TYPE_PACKED16 data_a_packed16[];}; 14 #endif 15 #if defined(A_TYPE_PACKED32) 16 layout (binding = 0) readonly buffer A_PACKED32 {A_TYPE_PACKED32 data_a_packed32[];}; 17 #endif 18 #if defined(A_TYPE_PACKED64) 19 layout (binding = 0) readonly buffer A_PACKED64 {A_TYPE_PACKED64 data_a_packed64[];}; 20 #endif 21 22 layout (binding = 1) readonly buffer B {B_TYPE data_b[];}; 23 #ifdef B_TYPEV2 24 layout (binding = 1) readonly buffer BV2 {B_TYPEV2 data_b_v2[];}; 25 #endif 26 #ifdef B_TYPEV4 27 layout (binding = 1) readonly buffer BV4 {B_TYPEV4 data_b_v4[];}; 28 #endif 29 30 layout (binding = 2) writeonly buffer D {D_TYPE data_d[];}; 31 32 layout (binding = 3) readonly buffer Fuse0 {D_TYPE data_fuse0[];}; 33 layout (binding = 4) readonly buffer Fuse1 {D_TYPE data_fuse1[];}; 34 35 #ifdef MUL_MAT_ID 36 layout (binding = 5) readonly buffer IDS {int data_ids[];}; 37 #endif 38