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
12 lines (11 loc) • 533 B
TypeScript
import { ComputePipeline } from "../pipelines/ComputePipeline";
import { ShaderStage } from "./shaderParts/ShaderStage";
import { ShaderStruct } from "./shaderParts/ShaderStruct";
export declare class ComputeShader extends ShaderStage {
constructor();
build(shaderPipeline: ComputePipeline, inputs: ShaderStruct): {
code: string;
output: ShaderStruct;
};
static removeStructDefinitionAndReplaceStructDeclarationName(shaderCode: string, structName: string, newStructName: string): string;
}