{"ast":null,"code":"import { ThinEngine } from \"../../Engines/thinEngine.js\";\nimport { AbstractEngine } from \"../abstractEngine.js\";\n/** @internal */\nexport var ComputeBindingType;\n(function (ComputeBindingType) {\n ComputeBindingType[ComputeBindingType[\"Texture\"] = 0] = \"Texture\";\n ComputeBindingType[ComputeBindingType[\"StorageTexture\"] = 1] = \"StorageTexture\";\n ComputeBindingType[ComputeBindingType[\"UniformBuffer\"] = 2] = \"UniformBuffer\";\n ComputeBindingType[ComputeBindingType[\"StorageBuffer\"] = 3] = \"StorageBuffer\";\n ComputeBindingType[ComputeBindingType[\"TextureWithoutSampler\"] = 4] = \"TextureWithoutSampler\";\n ComputeBindingType[ComputeBindingType[\"Sampler\"] = 5] = \"Sampler\";\n ComputeBindingType[ComputeBindingType[\"ExternalTexture\"] = 6] = \"ExternalTexture\";\n ComputeBindingType[ComputeBindingType[\"DataBuffer\"] = 7] = \"DataBuffer\";\n})(ComputeBindingType || (ComputeBindingType = {}));\nThinEngine.prototype.createComputeEffect = function (baseName, options) {\n throw new Error(\"createComputeEffect: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.createComputePipelineContext = function () {\n throw new Error(\"createComputePipelineContext: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.createComputeContext = function () {\n return undefined;\n};\nThinEngine.prototype.computeDispatch = function (effect, context, bindings, x, y, z, bindingsMapping) {\n throw new Error(\"computeDispatch: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.computeDispatchIndirect = function (effect, context, bindings, buffer, offset, bindingsMapping) {\n throw new Error(\"computeDispatchIndirect: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.areAllComputeEffectsReady = function () {\n return true;\n};\nThinEngine.prototype.releaseComputeEffects = function () {};\nThinEngine.prototype._prepareComputePipelineContext = function (pipelineContext, computeSourceCode, rawComputeSourceCode, defines, entryPoint) {};\nThinEngine.prototype._rebuildComputeEffects = function () {};\nAbstractEngine.prototype._executeWhenComputeStateIsCompiled = function (pipelineContext, action) {\n action(null);\n};\nThinEngine.prototype._releaseComputeEffect = function (effect) {};\nThinEngine.prototype._deleteComputePipelineContext = function (pipelineContext) {};","map":{"version":3,"names":["ThinEngine","AbstractEngine","ComputeBindingType","prototype","createComputeEffect","baseName","options","Error","createComputePipelineContext","createComputeContext","undefined","computeDispatch","effect","context","bindings","x","y","z","bindingsMapping","computeDispatchIndirect","buffer","offset","areAllComputeEffectsReady","releaseComputeEffects","_prepareComputePipelineContext","pipelineContext","computeSourceCode","rawComputeSourceCode","defines","entryPoint","_rebuildComputeEffects","_executeWhenComputeStateIsCompiled","action","_releaseComputeEffect","_deleteComputePipelineContext"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Engines/Extensions/engine.computeShader.js"],"sourcesContent":["import { ThinEngine } from \"../../Engines/thinEngine.js\";\nimport { AbstractEngine } from \"../abstractEngine.js\";\n/** @internal */\nexport var ComputeBindingType;\n(function (ComputeBindingType) {\n ComputeBindingType[ComputeBindingType[\"Texture\"] = 0] = \"Texture\";\n ComputeBindingType[ComputeBindingType[\"StorageTexture\"] = 1] = \"StorageTexture\";\n ComputeBindingType[ComputeBindingType[\"UniformBuffer\"] = 2] = \"UniformBuffer\";\n ComputeBindingType[ComputeBindingType[\"StorageBuffer\"] = 3] = \"StorageBuffer\";\n ComputeBindingType[ComputeBindingType[\"TextureWithoutSampler\"] = 4] = \"TextureWithoutSampler\";\n ComputeBindingType[ComputeBindingType[\"Sampler\"] = 5] = \"Sampler\";\n ComputeBindingType[ComputeBindingType[\"ExternalTexture\"] = 6] = \"ExternalTexture\";\n ComputeBindingType[ComputeBindingType[\"DataBuffer\"] = 7] = \"DataBuffer\";\n})(ComputeBindingType || (ComputeBindingType = {}));\nThinEngine.prototype.createComputeEffect = function (baseName, options) {\n throw new Error(\"createComputeEffect: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.createComputePipelineContext = function () {\n throw new Error(\"createComputePipelineContext: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.createComputeContext = function () {\n return undefined;\n};\nThinEngine.prototype.computeDispatch = function (effect, context, bindings, x, y, z, bindingsMapping) {\n throw new Error(\"computeDispatch: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.computeDispatchIndirect = function (effect, context, bindings, buffer, offset, bindingsMapping) {\n throw new Error(\"computeDispatchIndirect: This engine does not support compute shaders!\");\n};\nThinEngine.prototype.areAllComputeEffectsReady = function () {\n return true;\n};\nThinEngine.prototype.releaseComputeEffects = function () { };\nThinEngine.prototype._prepareComputePipelineContext = function (pipelineContext, computeSourceCode, rawComputeSourceCode, defines, entryPoint) { };\nThinEngine.prototype._rebuildComputeEffects = function () { };\nAbstractEngine.prototype._executeWhenComputeStateIsCompiled = function (pipelineContext, action) {\n action(null);\n};\nThinEngine.prototype._releaseComputeEffect = function (effect) { };\nThinEngine.prototype._deleteComputePipelineContext = function (pipelineContext) { };\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AACxD,SAASC,cAAc,QAAQ,sBAAsB;AACrD;AACA,OAAO,IAAIC,kBAAkB;AAC7B,CAAC,UAAUA,kBAAkB,EAAE;EAC3BA,kBAAkB,CAACA,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;EACjEA,kBAAkB,CAACA,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;EAC/EA,kBAAkB,CAACA,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;EAC7EA,kBAAkB,CAACA,kBAAkB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;EAC7EA,kBAAkB,CAACA,kBAAkB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,uBAAuB;EAC7FA,kBAAkB,CAACA,kBAAkB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,SAAS;EACjEA,kBAAkB,CAACA,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,CA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