first commit

This commit is contained in:
2025-12-31 14:22:45 +01:00
commit c78a860098
73 changed files with 30137 additions and 0 deletions

37
framework/RenderPass.js Normal file
View 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;
}
}