Skip to content

Commit 94dd1d8

Browse files
committed
Merge branch 'opt-vulkan-gemm-2' of github.com:nihui/ncnn into opt-vulkan-gemm-2
2 parents 9635791 + d6e353a commit 94dd1d8

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/developer-guide/glsl-extension.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@ afp lfp2afp(lfp v);
219219
afpvec4 lfp2afpvec4(lfpvec4 v);
220220
```
221221
222+
- local variable to local memory
223+
224+
```c
225+
lfp afp2lfp(afp v);
226+
lfpvec4 afp2lfpvec4(afpvec4 v);
227+
```
228+
222229
Note: The common usage of local memory is to read from global memory first, store it in local memory, and then read local variables from local memory for subsequent use. Therefore, only storage type to local type and local type to arithmetic type conversion functions are provided here.
223230

224231
# misc functions

docs/developer-guide/glsl-extension.zh.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ afp lfp2afp(lfp v);
220220
afpvec4 lfp2afpvec4(lfpvec4 v);
221221
```
222222
223+
- 局部变量转换到本地内存
224+
225+
```c
226+
lfp afp2lfp(afp v);
227+
lfpvec4 afp2lfpvec4(afpvec4 v);
228+
```
229+
223230
注意:本地内存的常见用法是先从全局内存中读取,存储在本地内存中,然后再从本地内存中读取局部变量以供后续使用。因此,此处仅提供存储类型到本地类型和本地类型到算术类型的转换函数。
224231

225232
# 杂项函数

0 commit comments

Comments
 (0)