Adds specialization constant to computeheadless
This commit is contained in:
parent
685d2849da
commit
20668189f1
3 changed files with 12 additions and 2 deletions
|
|
@ -6,8 +6,7 @@ layout(binding = 0) buffer Pos {
|
|||
|
||||
layout (local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
// todo: pass via specialization constant
|
||||
#define BUFFER_ELEMENTS 32
|
||||
layout(constant_id = 0) const uint BUFFER_ELEMENTS = 32;
|
||||
|
||||
uint fibonacci(uint n) {
|
||||
if(n <= 1){
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue