forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
14
Kha/Backends/Krom/kha/graphics4/TessellationControlShader.hx
Normal file
14
Kha/Backends/Krom/kha/graphics4/TessellationControlShader.hx
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user