get slow but correct results for intermediate
This commit is contained in:
@@ -16,6 +16,11 @@ layout(push_constant) uniform PushStruct {
|
||||
|
||||
layout(binding = 0) buffer inoutBufer { uint v[]; };
|
||||
|
||||
void main() {
|
||||
// TODO: Kernel implementation
|
||||
void main() {
|
||||
uint gIDx = gl_GlobalInvocationID.x;
|
||||
if (gIDx >= p.size) {
|
||||
return;
|
||||
}
|
||||
|
||||
v[gIDx] = v[gIDx] + v[gIDx + p.offset];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user