/** * Returns the format of a view bind group: the view uniform buffer at binding 0, followed by the * textures. The textures are ordered by name, so shaders declaring the same textures in any order * share one format - and so one bind group per pass. * * @param {GraphicsDevice} device - The graphics device. * @param {BindTextureFormat[]} textureFormats - The formats of the textures, which are sorted in * place. When a matching format is cached, they are not used. * @returns {BindGroupFormat} The shared format. * @ignore */ export function getViewBindGroupFormat(device: GraphicsDevice, textureFormats: BindTextureFormat[]): BindGroupFormat; import type { GraphicsDevice } from './graphics-device.js'; import type { BindTextureFormat } from './bind-group-format.js'; import { BindGroupFormat } from './bind-group-format.js';