|
@@ -51072,7 +51072,7 @@ var WebGPUEngine = /** @class */ (function (_super) {
|
|
* Restores the WebGPU state to only draw on the main color attachment
|
|
* Restores the WebGPU state to only draw on the main color attachment
|
|
*/
|
|
*/
|
|
WebGPUEngine.prototype.restoreSingleAttachment = function () {
|
|
WebGPUEngine.prototype.restoreSingleAttachment = function () {
|
|
- this.bindAttachments([]);
|
|
|
|
|
|
+ // nothing to do, this is done automatically in the unBindFramebuffer function
|
|
};
|
|
};
|
|
/**
|
|
/**
|
|
* Creates a layout object to draw/clear on specific textures in a MRT
|
|
* Creates a layout object to draw/clear on specific textures in a MRT
|
|
@@ -51096,7 +51096,7 @@ var WebGPUEngine = /** @class */ (function (_super) {
|
|
* @param attachments index of attachments
|
|
* @param attachments index of attachments
|
|
*/
|
|
*/
|
|
WebGPUEngine.prototype.bindAttachments = function (attachments) {
|
|
WebGPUEngine.prototype.bindAttachments = function (attachments) {
|
|
- this._mrtAttachments = attachments;
|
|
|
|
|
|
+ // nothing to do, this is done automatically in the _startRenderTargetRenderPass function
|
|
};
|
|
};
|
|
/**
|
|
/**
|
|
* Binds the frame buffer to the specified texture.
|
|
* Binds the frame buffer to the specified texture.
|
|
@@ -51195,6 +51195,7 @@ var WebGPUEngine = /** @class */ (function (_super) {
|
|
this._generateMipmaps(texture);
|
|
this._generateMipmaps(texture);
|
|
}
|
|
}
|
|
this._currentRenderTarget = null;
|
|
this._currentRenderTarget = null;
|
|
|
|
+ this._mrtAttachments = [];
|
|
this._currentRenderPass = this._mainRenderPassWrapper.renderPass;
|
|
this._currentRenderPass = this._mainRenderPassWrapper.renderPass;
|
|
this._setDepthTextureFormat(this._mainRenderPassWrapper);
|
|
this._setDepthTextureFormat(this._mainRenderPassWrapper);
|
|
this._setColorFormat(this._mainRenderPassWrapper);
|
|
this._setColorFormat(this._mainRenderPassWrapper);
|