first commit
This commit is contained in:
37
framework/RenderPass.js
Normal file
37
framework/RenderPass.js
Normal file
@@ -0,0 +1,37 @@
|
||||
export class RenderPass {
|
||||
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
attach(device, block, pipeline) {
|
||||
this.device = device;
|
||||
this.block = block;
|
||||
this.pipeline = pipeline;
|
||||
}
|
||||
|
||||
async create() {
|
||||
// override — create Shader, load WGSL, create local buffers
|
||||
}
|
||||
|
||||
async bindBuffers() {
|
||||
// override — wire connections to other passes
|
||||
}
|
||||
|
||||
async execute() {
|
||||
// override — dispatch shader
|
||||
}
|
||||
|
||||
async test() {
|
||||
// override — CPU-vs-GPU correctness test
|
||||
}
|
||||
|
||||
setLayerIndex(index) {
|
||||
this.layerIndex = index;
|
||||
}
|
||||
|
||||
setLayerWeightArray(array) {
|
||||
this.layerWeightArray = array;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user