LNXSDK/Kha/Backends/Kinc-HL/kha/graphics4/TessellationEvaluationShader.hx
2025-01-22 16:18:30 +01:00

32 lines
922 B
Haxe

package kha.graphics4;
import kha.Blob;
class TessellationEvaluationShader {
public var _shader: Pointer;
public function new(sources: Array<Blob>, files: Array<String>) {
initShader(sources[0]);
}
function initShader(source: Blob): Void {
_shader = kinc_create_tessevalshader(source.bytes.getData(), source.bytes.getData().length);
}
public static function fromSource(source: String): TessellationEvaluationShader {
var sh = new TessellationEvaluationShader(null, null);
sh._shader = kinc_tessevalshader_from_source(StringHelper.convert(source));
return sh;
}
public function delete(): Void {}
@:hlNative("std", "kinc_create_tessevalshader") static function kinc_create_tessevalshader(data: hl.Bytes, length: Int): Pointer {
return null;
}
@:hlNative("std", "kinc_tessevalshader_from_source") static function kinc_tessevalshader_from_source(source: hl.Bytes): Pointer {
return null;
}
}