forked from LeenkxTeam/LNXSDK
Update
This commit is contained in:
22
Kha/Backends/Krom/kha/graphics4/ComputeShader.hx
Normal file
22
Kha/Backends/Krom/kha/graphics4/ComputeShader.hx
Normal file
@ -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;
|
||||
}
|
||||
}
|
||||
@ -71,8 +71,8 @@ class CubeMap implements Canvas implements Resource {
|
||||
format = TextureFormat.RGBA32;
|
||||
var cubeMap = new CubeMap(null);
|
||||
cubeMap.format = format;
|
||||
cubeMap.renderTarget_ = Krom.createRenderTargetCubeMap(size, getRenderTargetFormat(format), getDepthBufferBits(depthStencil),
|
||||
getStencilBufferBits(depthStencil));
|
||||
cubeMap.renderTarget_ = Krom.createRenderTargetCubeMap(size, getDepthBufferBits(depthStencil), getRenderTargetFormat(format),
|
||||
getStencilBufferBits(depthStencil), 0);
|
||||
return cubeMap;
|
||||
}
|
||||
|
||||
|
||||
24
Kha/Backends/Krom/kha/graphics4/ShaderStorageBuffer.hx
Normal file
24
Kha/Backends/Krom/kha/graphics4/ShaderStorageBuffer.hx
Normal file
@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user