Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Oct 25, 2024
1 parent 54fd4fe commit 10e8f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/graphics/texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { TextureUtils } from './texture-utils.js';

/**
* @import { GraphicsDevice } from './graphics-device.js'
* @import { RenderTarget } from './render-target.js'
*/

let id = 0;
Expand Down Expand Up @@ -1021,7 +1022,7 @@ class Texture {
* @param {number} width - The width of the rectangle.
* @param {number} height - The height of the rectangle.
* @param {object} [options] - Object for passing optional arguments.
* @param {number} [options.renderTarget] - The render target using the texture as a color
* @param {RenderTarget} [options.renderTarget] - The render target using the texture as a color
* buffer. Provide as an optimization to avoid creating a new render target. Important especially
* when this function is called with high frequency (per frame). Note that this is only utilized
* on the WebGL platform, and ignored on WebGPU.
Expand Down

0 comments on commit 10e8f78

Please sign in to comment.