import { SamplerStateParams, TextureUnitState } from '../../states'; import { DeviceGPU } from '../DeviceGPU'; import { SamplerStateGPU } from './SamplerStateGPU'; /** * @public */ export declare class TextureUnitStateGPU extends TextureUnitState { /** * The graphics device */ readonly device: DeviceGPU; /** * The sampler state object */ readonly sampler: SamplerStateGPU; /** * Gets the 0-based texture unit index */ readonly index: number; constructor(device: DeviceGPU, index: number); /** * Activates this texture unit */ activate(): this; /** * Assigns and commits the sampler state and current texture to this texture unit * * @remarks * The given sampler state will be ignored if the current texture provides * own sampler state. * * If current texture is not power of two the sampler state params will be * automatically adjusted so webgl engine does not raise errors. * * @param samplerParams - The sampler state to assign */ commit(samplerParams?: SamplerStateParams): this; } //# sourceMappingURL=TextureUnitStateGPU.d.ts.map