فهرست منبع

Use sampleCount from render target in createRenderPipeline if currently in render target pass

Popov72 4 سال پیش
والد
کامیت
fd6a2148c0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Engines/webgpuEngine.ts

+ 1 - 1
src/Engines/webgpuEngine.ts

@@ -2664,7 +2664,7 @@ export class WebGPUEngine extends Engine {
         const pipelineLayout = this._getPipelineLayout();
         const pipelineLayout = this._getPipelineLayout();
 
 
         webgpuPipelineContext.renderPipeline = this._device.createRenderPipeline({
         webgpuPipelineContext.renderPipeline = this._device.createRenderPipeline({
-            sampleCount: this._mainPassSampleCount,
+            sampleCount: this._currentRenderTarget ? this._currentRenderTarget.samples : this._mainPassSampleCount,
             primitiveTopology: topology,
             primitiveTopology: topology,
             rasterizationState: rasterizationStateDescriptor,
             rasterizationState: rasterizationStateDescriptor,
             depthStencilState: depthStateDescriptor,
             depthStencilState: depthStateDescriptor,