2026-05-21 23:40:20 -07:00
|
|
|
package kha.graphics4;
|
2025-01-22 16:18:30 +01:00
|
|
|
|
|
|
|
|
class ShaderStorageBuffer {
|
|
|
|
|
public var _buffer: Pointer;
|
|
|
|
|
|
|
|
|
|
var data: Array<Int>;
|
|
|
|
|
var myCount: Int;
|
|
|
|
|
|
|
|
|
|
public function new(indexCount: Int, type: VertexData) {}
|
|
|
|
|
|
|
|
|
|
function init(indexCount: Int, type: VertexData) {}
|
|
|
|
|
|
|
|
|
|
public function delete(): Void {}
|
|
|
|
|
|
|
|
|
|
public function lock(): Array<Int> {
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function unlock(): Void {}
|
|
|
|
|
|
|
|
|
|
public function count(): Int {
|
|
|
|
|
return myCount;
|
|
|
|
|
}
|
|
|
|
|
}
|