@types/three
Version:
TypeScript definitions for three
32 lines (31 loc) • 1.02 kB
TypeScript
import Binding from "./Binding.js";
import NodeUniformsGroup from "./nodes/NodeUniformsGroup.js";
/**
* A bind group represents a collection of bindings and thus a collection
* or resources. Bind groups are assigned to pipelines to provide them
* with the required resources (like uniform buffers or textures).
*
* @private
*/
declare class BindGroup {
name: string;
bindings: NodeUniformsGroup[] | Binding[];
index: number;
bindingsReference: NodeUniformsGroup[] | BindGroup;
id: number;
/**
* Constructs a new bind group.
*
* @param {string} name - The bind group's name.
* @param {Array<Binding>} bindings - An array of bindings.
* @param {number} index - The group index.
* @param {Array<Binding>} bindingsReference - An array of reference bindings.
*/
constructor(
name?: string,
bindings?: NodeUniformsGroup[],
index?: number,
bindingsReference?: NodeUniformsGroup[] | BindGroup,
);
}
export default BindGroup;