Skip to content

Commit

Permalink
Styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szatkus committed Feb 14, 2020
1 parent 4cb49b8 commit 025e01a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
5 changes: 1 addition & 4 deletions imi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,7 @@ export class ImiSetIndex extends ImiOp {
}
}

export class ImiSwap extends ImiOp {


}
export class ImiSwap extends ImiOp {}

export class ImiPointerWrite extends ImiOp {

Expand Down
2 changes: 0 additions & 2 deletions spirv/_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export function compile (state: CompilationState, module: CompiledModule) {
// OpFunction
case 54:
{

state.processed = true
}
break
Expand All @@ -39,7 +38,6 @@ export function compile (state: CompilationState, module: CompiledModule) {
// OpFunctionEnd
case 56:
{

}
break
// OpFunctionCall
Expand Down
2 changes: 1 addition & 1 deletion spirv/execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ export function executeShader (vertexStage: GPUProgrammableStageDescriptor, inpu
let inputMemory = new InputMemory(inputs, compiled.decorations)
let storageBuffer = new StorageBufferMemory(inputs, compiled.decorations)
let outputMemory = new Memory(new ArrayBuffer(1024 * 4))
//Execution.start(inputMemory, outputMemory, storageBuffer, compiled, vertexStage.entryPoint)
// Execution.start(inputMemory, outputMemory, storageBuffer, compiled, vertexStage.entryPoint)
return outputMemory.float32View
}
2 changes: 1 addition & 1 deletion spirv/types/OpTypeArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ compiler.addInstruction(28, (state: CompilationState, module: CompiledModule) =>
module.ops.push(new ImiNumber(count))
module.ops.push(new ImiType(TypeArray))
module.ops.push(new ImiPut(resultId))

console.debug(`$${resultId} = OpTypeArray $${typeId} ${count}`)
})
2 changes: 1 addition & 1 deletion webgpu/KQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class KQueue implements GPUQueue {
this._working = true
setTimeout(() => this._executeBuffers(), 1)
} else {
//this._buffers = this._buffers.concat(buffers)
// this._buffers = this._buffers.concat(buffers)
}
}

Expand Down
2 changes: 1 addition & 1 deletion webgpu/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Context2DTexture implements KTexture {
return false
}

_isValid(): boolean {
_isValid (): boolean {
return true
}

Expand Down

0 comments on commit 025e01a

Please sign in to comment.