{"ast":null,"code":"import { GetTypeForDepthTexture, InternalTexture } from \"../../../Materials/Textures/internalTexture.js\";\nimport { WebGPURenderTargetWrapper } from \"../webgpuRenderTargetWrapper.js\";\nimport \"../../AbstractEngine/abstractEngine.texture.js\";\nimport { ThinWebGPUEngine } from \"../../thinWebGPUEngine.js\";\nThinWebGPUEngine.prototype._createHardwareRenderTargetWrapper = function (isMulti, isCube, size) {\n const rtWrapper = new WebGPURenderTargetWrapper(isMulti, isCube, size, this);\n this._renderTargetWrapperCache.push(rtWrapper);\n return rtWrapper;\n};\nThinWebGPUEngine.prototype.createRenderTargetTexture = function (size, options) {\n var _fullOptions$label, _ref, _fullOptions$colorAtt, _fullOptions$colorAtt2;\n const rtWrapper = this._createHardwareRenderTargetWrapper(false, false, size);\n const fullOptions = {};\n if (options !== undefined && typeof options === \"object\") {\n var _options$creationFlag;\n fullOptions.generateMipMaps = options.generateMipMaps;\n fullOptions.generateDepthBuffer = options.generateDepthBuffer === undefined ? true : options.generateDepthBuffer;\n fullOptions.generateStencilBuffer = fullOptions.generateDepthBuffer && options.generateStencilBuffer;\n fullOptions.samplingMode = options.samplingMode === undefined ? 3 : options.samplingMode;\n fullOptions.creationFlags = (_options$creationFlag = options.creationFlags) !== null && _options$creationFlag !== void 0 ? _options$creationFlag : 0;\n fullOptions.noColorAttachment = !!options.noColorAttachment;\n fullOptions.colorAttachment = options.colorAttachment;\n fullOptions.samples = options.samples;\n fullOptions.label = options.label;\n fullOptions.format = options.format;\n fullOptions.type = options.type;\n } else {\n fullOptions.generateMipMaps = options;\n fullOptions.generateDepthBuffer = true;\n fullOptions.generateStencilBuffer = false;\n fullOptions.samplingMode = 3;\n fullOptions.creationFlags = 0;\n fullOptions.noColorAttachment = false;\n }\n const texture = fullOptions.colorAttachment || (fullOptions.noColorAttachment ? null : this._createInternalTexture(size, fullOptions, true, 5 /* InternalTextureSource.RenderTarget */));\n rtWrapper.label = (_fullOptions$label = fullOptions.label) !== null && _fullOptions$label !== void 0 ? _fullOptions$label : \"RenderTargetWrapper\";\n rtWrapper._samples = (_ref = (_fullOptions$colorAtt = (_fullOptions$colorAtt2 = fullOptions.colorAttachment) === null || _fullOptions$colorAtt2 === void 0 ? void 0 : _fullOptions$colorAtt2.samples) !== null && _fullOptions$colorAtt !== void 0 ? _fullOptions$colorAtt : fullOptions.samples) !== null && _ref !== void 0 ? _ref : 1;\n rtWrapper._generateDepthBuffer = fullOptions.generateDepthBuffer;\n rtWrapper._generateStencilBuffer = fullOptions.generateStencilBuffer ? true : false;\n rtWrapper.setTextures(texture);\n if (rtWrapper._generateDepthBuffer || rtWrapper._generateStencilBuffer) {\n rtWrapper.createDepthStencilTexture(0, false,\n // force false as filtering is not supported for depth textures\n rtWrapper._generateStencilBuffer, rtWrapper.samples, fullOptions.generateStencilBuffer ? 13 : 14, fullOptions.label ? fullOptions.label + \"-DepthStencil\" : undefined);\n }\n if (texture && !fullOptions.colorAttachment) {\n if (options !== undefined && typeof options === \"object\" && options.createMipMaps && !fullOptions.generateMipMaps) {\n texture.generateMipMaps = true;\n }\n this._textureHelper.createGPUTextureForInternalTexture(texture, undefined, undefined, undefined, fullOptions.creationFlags);\n if (options !== undefined && typeof options === \"object\" && options.createMipMaps && !fullOptions.generateMipMaps) {\n texture.generateMipMaps = false;\n }\n }\n return rtWrapper;\n};\nThinWebGPUEngine.prototype._createDepthStencilTexture = function (size, options, wrapper) {\n const internalOptions = {\n bilinearFiltering: false,\n comparisonFunction: 0,\n generateStencil: false,\n samples: 1,\n depthTextureFormat: options.generateStencil ? 13 : 14,\n ...options\n };\n const hasStencil = internalOptions.depthTextureFormat === 17 || internalOptions.depthTextureFormat === 13 || internalOptions.depthTextureFormat === 18;\n wrapper._depthStencilTextureWithStencil = hasStencil;\n const internalTexture = new InternalTexture(this, hasStencil ? 12 /* InternalTextureSource.DepthStencil */ : 14 /* InternalTextureSource.Depth */);\n internalTexture.label = options.label;\n internalTexture.format = internalOptions.depthTextureFormat;\n internalTexture.type = GetTypeForDepthTexture(internalTexture.format);\n this._setupDepthStencilTexture(internalTexture, size, internalOptions.bilinearFiltering, internalOptions.comparisonFunction, internalOptions.samples);\n this._textureHelper.createGPUTextureForInternalTexture(internalTexture);\n this._internalTexturesCache.push(internalTexture);\n return internalTexture;\n};\nThinWebGPUEngine.prototype._setupDepthStencilTexture = function (internalTexture, size, bilinearFiltering, comparisonFunction, samples = 1) {\n var _size$width, _size$height;\n const width = (_size$width = size.width) !== null && _size$width !== void 0 ? _size$width : size;\n const height = (_size$height = size.height) !== null && _size$height !== void 0 ? _size$height : size;\n const layers = size.layers || 0;\n const depth = size.depth || 0;\n internalTexture.baseWidth = width;\n internalTexture.baseHeight = height;\n internalTexture.width = width;\n internalTexture.height = height;\n internalTexture.is2DArray = layers > 0;\n internalTexture.is3D = depth > 0;\n internalTexture.depth = layers || depth;\n internalTexture.isReady = true;\n internalTexture.samples = samples;\n internalTexture.generateMipMaps = false;\n internalTexture.samplingMode = bilinearFiltering ? 2 : 1;\n internalTexture.type = 1; // the right type will be set later\n internalTexture._comparisonFunction = comparisonFunction;\n internalTexture._cachedWrapU = 0;\n internalTexture._cachedWrapV = 0;\n};\nThinWebGPUEngine.prototype.updateRenderTargetTextureSampleCount = function (rtWrapper, samples) {\n if (!rtWrapper || !rtWrapper.texture || rtWrapper.samples === samples) {\n return samples;\n }\n samples = Math.min(samples, this.getCaps().maxMSAASamples);\n this._textureHelper.createMSAATexture(rtWrapper.texture, samples);\n if (rtWrapper._depthStencilTexture) {\n this._textureHelper.createMSAATexture(rtWrapper._depthStencilTexture, samples);\n rtWrapper._depthStencilTexture.samples = samples;\n }\n rtWrapper._samples = samples;\n rtWrapper.texture.samples = samples;\n return samples;\n};","map":{"version":3,"names":["GetTypeForDepthTexture","InternalTexture","WebGPURenderTargetWrapper","ThinWebGPUEngine","prototype","_createHardwareRenderTargetWrapper","isMulti","isCube","size","rtWrapper","_renderTargetWrapperCache","push","createRenderTargetTexture","options","_fullOptions$label","_ref","_fullOptions$colorAtt","_fullOptions$colorAtt2","fullOptions","undefined","_options$creationFlag","generateMipMaps","generateDepthBuffer","generateStencilBuffer","samplingMode","creationFlags","noColorAttachment","colorAttachment","samples","label","format","type","texture","_createInternalTexture","_samples","_generateDepthBuffer","_generateStencilBuffer","setTextures","createDepthStencilTexture","createMipMaps","_textureHelper","createGPUTextureForInternalTexture","_createDepthStencilTexture","wrapper","internalOptions","bilinearFiltering","comparisonFunction","generateStencil","depthTextureFormat","hasStencil","_depthStencilTextureWithStencil","internalTexture","_setupDepthStencilTexture","_internalTexturesCache","_size$width","_size$height","width","height","layers","depth","baseWidth","baseHeight","is2DArray","is3D","isReady","_comparisonFunction","_cachedWrapU","_cachedWrapV","updateRenderTargetTextureSampleCount","Math","min","getCaps","maxMSAASamples","createMSAATexture","_depthStencilTexture"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Engines/WebGPU/Extensions/engine.renderTarget.js"],"sourcesContent":["import { GetTypeForDepthTexture, InternalTexture } from \"../../../Materials/Textures/internalTexture.js\";\n\nimport { WebGPURenderTargetWrapper } from \"../webgpuRenderTargetWrapper.js\";\nimport \"../../AbstractEngine/abstractEngine.texture.js\";\nimport { ThinWebGPUEngine } from \"../../thinWebGPUEngine.js\";\nThinWebGPUEngine.prototype._createHardwareRenderTargetWrapper = function (isMulti, isCube, size) {\n const rtWrapper = new WebGPURenderTargetWrapper(isMulti, isCube, size, this);\n this._renderTargetWrapperCache.push(rtWrapper);\n return rtWrapper;\n};\nThinWebGPUEngine.prototype.createRenderTargetTexture = function (size, options) {\n const rtWrapper = this._createHardwareRenderTargetWrapper(false, false, size);\n const fullOptions = {};\n if (options !== undefined && typeof options === \"object\") {\n fullOptions.generateMipMaps = options.generateMipMaps;\n fullOptions.generateDepthBuffer = options.generateDepthBuffer === undefined ? true : options.generateDepthBuffer;\n fullOptions.generateStencilBuffer = fullOptions.generateDepthBuffer && options.generateStencilBuffer;\n fullOptions.samplingMode = options.samplingMode === undefined ? 3 : options.samplingMode;\n fullOptions.creationFlags = options.creationFlags ?? 0;\n fullOptions.noColorAttachment = !!options.noColorAttachment;\n fullOptions.colorAttachment = options.colorAttachment;\n fullOptions.samples = options.samples;\n fullOptions.label = options.label;\n fullOptions.format = options.format;\n fullOptions.type = options.type;\n }\n else {\n fullOptions.generateMipMaps = options;\n fullOptions.generateDepthBuffer = true;\n fullOptions.generateStencilBuffer = false;\n fullOptions.samplingMode = 3;\n fullOptions.creationFlags = 0;\n fullOptions.noColorAttachment = false;\n }\n const texture = fullOptions.colorAttachment || (fullOptions.noColorAttachment ? null : this._createInternalTexture(size, fullOptions, true, 5 /* InternalTextureSource.RenderTarget */));\n rtWrapper.label = fullOptions.label ?? \"RenderTargetWrapper\";\n rtWrapper._samples = fullOptions.colorAttachment?.samples ?? fullOptions.samples ?? 1;\n rtWrapper._generateDepthBuffer = fullOptions.generateDepthBuffer;\n rtWrapper._generateStencilBuffer = fullOptions.generateStencilBuffer ? true : false;\n rtWrapper.setTextures(texture);\n if (rtWrapper._generateDepthBuffer || rtWrapper._generateStencilBuffer) {\n rtWrapper.createDepthStencilTexture(0, false, // force false as filtering is not supported for depth textures\n rtWrapper._generateStencilBuffer, rtWrapper.samples, fullOptions.generateStencilBuffer ? 13 : 14, fullOptions.label ? fullOptions.label + \"-DepthStencil\" : undefined);\n }\n if (texture && !fullOptions.colorAttachment) {\n if (options !== undefined && typeof options === \"object\" && options.createMipMaps && !fullOptions.generateMipMaps) {\n texture.generateMipMaps = true;\n }\n this._textureHelper.createGPUTextureForInternalTexture(texture, undefined, undefined, undefined, fullOptions.creationFlags);\n if (options !== undefined && typeof options === \"object\" && options.createMipMaps && !fullOptions.generateMipMaps) {\n texture.generateMipMaps = false;\n }\n }\n return rtWrapper;\n};\nThinWebGPUEngine.prototype._createDepthStencilTexture = function (size, options, wrapper) {\n const internalOptions = {\n bilinearFiltering: false,\n comparisonFunction: 0,\n generateStencil: false,\n samples: 1,\n depthTextureFormat: options.generateStencil ? 13 : 14,\n ...options,\n };\n const hasStencil = internalOptions.depthTextureFormat === 17 ||\n internalOptions.depthTextureFormat === 13 ||\n internalOptions.depthTextureFormat === 18;\n wrapper._depthStencilTextureWithStencil = hasStencil;\n const internalTexture = new InternalTexture(this, hasStencil ? 12 /* InternalTextureSource.DepthStencil */ : 14 /* InternalTextureSource.Depth */);\n internalTexture.label = options.label;\n internalTexture.format = internalOptions.depthTextureFormat;\n internalTexture.type = GetTypeForDepthTexture(internalTexture.format);\n this._setupDepthStencilTexture(internalTexture, size, internalOptions.bilinearFiltering, internalOptions.comparisonFunction, internalOptions.samples);\n this._textureHelper.createGPUTextureForInternalTexture(internalTexture);\n this._internalTexturesCache.push(internalTexture);\n return internalTexture;\n};\nThinWebGPUEngine.prototype._setupDepthStencilTexture = function (internalTexture, size, bilinearFiltering, comparisonFunction, samples = 1) {\n const width = size.width ?? size;\n const height = size.height ?? size;\n const layers = size.layers || 0;\n const depth = size.depth || 0;\n internalTexture.baseWidth = width;\n internalTexture.baseHeight = height;\n internalTexture.width = width;\n internalTexture.height = height;\n internalTexture.is2DArray = layers > 0;\n internalTexture.is3D = depth > 0;\n internalTexture.depth = layers || depth;\n internalTexture.isReady = true;\n internalTexture.samples = samples;\n internalTexture.generateMipMaps = false;\n internalTexture.samplingMode = bilinearFiltering ? 2 : 1;\n internalTexture.type = 1; // the right type will be set later\n internalTexture._comparisonFunction = comparisonFunction;\n internalTexture._cachedWrapU = 0;\n internalTexture._cachedWrapV = 0;\n};\nThinWebGPUEngine.prototype.updateRenderTargetTextureSampleCount = function (rtWrapper, samples) {\n if (!rtWrapper || !rtWrapper.texture || rtWrapper.samples === samples) {\n return samples;\n }\n samples = Math.min(samples, this.getCaps().maxMSAASamples);\n this._textureHelper.createMSAATexture(rtWrapper.texture, samples);\n if (rtWrapper._depthStencilTexture) {\n this._textureHelper.createMSAATexture(rtWrapper._depthStencilTexture, samples);\n rtWrapper._depthStencilTexture.samples = samples;\n }\n rtWrapper._samples = samples;\n rtWrapper.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