Files
LNXSDK/Kha/Backends/Krom/kha/compute/ShaderStorageBuffer.hx

27 lines
466 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
package kha.compute;
import kha.graphics4.VertexData;
class ShaderStorageBuffer {
var data: Array<Int>;
var myCount: Int;
public function new(indexCount: Int, type: VertexData) {
myCount = indexCount;
data = new Array<Int>();
2026-07-16 23:49:44 -07:00
if (myCount > 0) data[myCount - 1] = 0;
2025-01-22 16:18:30 +01:00
}
public function delete(): Void {}
public function lock(): Array<Int> {
return data;
}
public function unlock(): Void {}
public function count(): Int {
return myCount;
}
}