LNXSDK/Kha/Backends/Kinc-hxcpp/kha/graphics5_/AccelerationStructure.hx

18 lines
518 B
Haxe
Raw Normal View History

2025-01-22 16:18:30 +01:00
package kha.graphics5;
#if kha_dxr
@:headerCode('
#include <Kore/Graphics5/RayTrace.h>
')
@:headerClassCode("Kore::Graphics5::AccelerationStructure* accel;")
class AccelerationStructure {
public function new(commandList: CommandList, vb: VertexBuffer, ib: IndexBuffer) {
init(commandList, vb, ib);
}
function init(commandList: CommandList, vb: VertexBuffer, ib: IndexBuffer) {
untyped __cpp__("accel = new Kore::Graphics5::AccelerationStructure(commandList->commandList, vb->buffer, ib->buffer);");
}
}
#end