0

我正在使用 Vulkan 并想运行一个用 GLSL 编写的计算着色器。当试图做这样的事情时

int x = firstBuffer[gl_GlobalInvocationID];
double param = secondBuffer[int(mod((x+1),3))] / secondBuffer[x-1];

该代码使用 glslc 编译,但在运行时崩溃并显示以下错误消息:

LLVM ERROR: bitcast dst not yet supported for integer types larger than 64 bits

我究竟做错了什么?会不会是动态索引问题?

编辑:它在 vkCreateShaderModule() 崩溃

4

0 回答 0