xgpu
Version:
XGPU is an extendable library for WebGPU that provides a higher-level, easy-to-use interface for building rendering engines or processing numeric data. It handles automatic data binding, buffer alignment, variable declarations in shaders, and more. XGPU i
9 lines (8 loc) • 343 B
JavaScript
// Copyright (c) 2023 Thomas Le Coz. All rights reserved.
// This code is governed by an MIT license that can be found in the LICENSE file.
export class BlendMode {
color = { operation: "add", srcFactor: "one", dstFactor: "zero" };
alpha = { operation: "add", srcFactor: "one", dstFactor: "zero" };
constructor() {
}
}