mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-09 15:55:37 +02:00
* vulkan: Programmatically add RoundingModeRTE to all shaders when the device supports it * use FetchContent to get SPIRV-Headers * Fetch spirv-headers unconditionally * remove fetchcontent, rely on installed headers * fix ubuntu job * Update docs/build.md
29 lines
587 B
GLSL
29 lines
587 B
GLSL
#extension GL_EXT_shader_16bit_storage : require
|
|
|
|
|
|
layout(local_size_x = 512, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
layout (binding = 0) readonly buffer A {A_TYPE data_a[];};
|
|
layout (binding = 1) readonly buffer B {A_TYPE data_b[];};
|
|
layout (binding = 2) writeonly buffer D {D_TYPE data_d[];};
|
|
|
|
layout (push_constant) uniform parameter
|
|
{
|
|
uint N;
|
|
uint ne00;
|
|
uint ne20;
|
|
uint mode;
|
|
float alpha;
|
|
float limit;
|
|
uint nb01;
|
|
uint nb02;
|
|
uint nb03;
|
|
uint ne01;
|
|
uint ne02;
|
|
uint nb11;
|
|
uint nb12;
|
|
uint nb13;
|
|
uint ne11;
|
|
uint ne12;
|
|
} p;
|