Only first Compute Shader array element appears updated

后端 未结 2 2108
耶瑟儿~
耶瑟儿~ 2020-12-21 19:33

Trying to send an array of integer to a compute shader, sets an arbitrary value to each integer and then reads back on CPU/HOST. The problem is that only the first element o

2条回答
  •  盖世英雄少女心
    2020-12-21 20:01

    Ok i had this problem as well i changed:

    layout(binding = 0) buffer SSBO{
    

    to:

    layout(binding = 0, std430) buffer SSBO{
    

提交回复
热议问题