package kha.graphics4; import kha.Blob; class TessellationEvaluationShader { public var _shader: Pointer; public function new(sources: Array, files: Array) { 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; } }