Best approach to arbitrarily select a single invovcation within a subgroup in a GLSL shader

前端 未结 0 413
北荒
北荒 2021-02-12 10:22

I have a task only 1 invocation from each subgroup is required to perform.

I can think of 2 ways of doings this:

if (subgroupElect()) {
    ...
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题