-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51d954c
commit d951192
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package kha.graphics4; | ||
|
||
import haxe.io.Bytes; | ||
import kha.Blob; | ||
|
||
class ComputeShader { | ||
public function new(sources: Array<Blob>, files: Array<String>) { | ||
|
||
} | ||
|
||
public function delete(): Void { | ||
|
||
} | ||
|
||
public function getConstantLocation(name: String): ConstantLocation { | ||
return null; | ||
} | ||
|
||
public function getTextureUnit(name: String): TextureUnit { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package kha.graphics4; | ||
|
||
class ShaderStorageBuffer { | ||
var data: Array<Int>; | ||
var myCount: Int; | ||
|
||
public function new(indexCount: Int, type: VertexData) { | ||
myCount = indexCount; | ||
data = new Array<Int>(); | ||
data[myCount - 1] = 0; | ||
} | ||
|
||
public function delete(): Void {} | ||
|
||
public function lock(): Array<Int> { | ||
return data; | ||
} | ||
|
||
public function unlock(): Void {} | ||
|
||
public function count(): Int { | ||
return myCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters