LNXSDK/Kha/Backends/Krom/kha/graphics4/TessellationControlShader.hx

15 lines
325 B
Haxe
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
package kha.graphics4;
class TessellationControlShader {
public var shader: Dynamic;
public function new(sources: Array<Blob>, names: Array<String>) {
shader = Krom.createTessellationControlShader(sources[0].bytes.getData(), names[0]);
}
public function delete() {
Krom.deleteShader(shader);
shader = null;
}
}