@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
26 lines (25 loc) • 1.1 kB
TypeScript
/**
* @ignore
*/
export class WebgpuVertexBufferLayout {
/**
* @type {Map<string, GPUVertexBufferLayout[]>}
* @private
*/
private cache;
/**
* Obtain a vertex layout of one or two vertex formats.
*
* @param {import('../vertex-format.js').VertexFormat} vertexFormat0 - The first vertex format.
* @param {import('../vertex-format.js').VertexFormat} [vertexFormat1] - The second vertex format.
* @returns {any[]} - The vertex layout.
*/
get(vertexFormat0: import("../vertex-format.js").VertexFormat, vertexFormat1?: import("../vertex-format.js").VertexFormat): any[];
getKey(vertexFormat0: any, vertexFormat1?: any): string;
/**
* @param {import('../vertex-format.js').VertexFormat} vertexFormat0 - The first vertex format.
* @param {import('../vertex-format.js').VertexFormat} vertexFormat1 - The second vertex format.
* @returns {any[]} - The vertex buffer layout.
*/
create(vertexFormat0: import("../vertex-format.js").VertexFormat, vertexFormat1: import("../vertex-format.js").VertexFormat): any[];
}