@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
55 lines (54 loc) • 1.48 kB
TypeScript
/**
* @ignore
*/
export class WebgpuRenderPipeline extends WebgpuPipeline {
lookupHashes: Uint32Array<ArrayBuffer>;
/**
* The cache of vertex buffer layouts
*
* @type {WebgpuVertexBufferLayout}
*/
vertexBufferLayout: WebgpuVertexBufferLayout;
/**
* The cache of render pipelines
*
* @type {Map<number, CacheEntry[]>}
*/
cache: Map<number, CacheEntry[]>;
/** @private */
private get;
getBlend(blendState: any): {
color: {
operation: string;
srcFactor: string;
dstFactor: string;
};
alpha: {
operation: string;
srcFactor: string;
dstFactor: string;
};
};
/** @private */
private getDepthStencil;
create(primitiveTopology: any, shader: any, renderTarget: any, pipelineLayout: any, blendState: any, depthState: any, vertexBufferLayout: any, cullMode: any, stencilEnabled: any, stencilFront: any, stencilBack: any): any;
}
import { WebgpuPipeline } from './webgpu-pipeline.js';
import { WebgpuVertexBufferLayout } from './webgpu-vertex-buffer-layout.js';
/** @ignore */
declare class CacheEntry {
/**
* Render pipeline
*
* @type {GPURenderPipeline}
* @private
*/
private pipeline;
/**
* The full array of hashes used to lookup the pipeline, used in case of hash collision.
*
* @type {Uint32Array}
*/
hashes: Uint32Array;
}
export {};