-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
d951192
commit 23e37cb
Showing
15 changed files
with
318 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
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; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Backends/HTML5-Worker/kha/graphics4/ShaderStorageBuffer.hx
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
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
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
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
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; | ||
} | ||
} |