Files

37 lines
605 B
JavaScript
Raw Permalink Normal View History

2025-12-31 14:22:45 +01:00
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;
}
}