浏览代码

크래시만 수정.

Hongtae Kim 5 年前
父节点
当前提交
b3e1f1e383
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      Samples/ComputeShader/ComputeShader.cpp

+ 4
- 4
Samples/ComputeShader/ComputeShader.cpp 查看文件

@@ -469,9 +469,9 @@ public:
469 469
                 if (computebindSet)
470 470
                 {
471 471
                     computebindSet->SetTexture(0, texture);
472
-                    computebindSet->SetSamplerState(0, sampler);
472
+                    //computebindSet->SetSamplerState(0, sampler);
473 473
                     computebindSet->SetTexture(1, targettex);
474
-                    computebindSet->SetSamplerState(1, sampler);
474
+                    //computebindSet->SetSamplerState(1, sampler);
475 475
                 }
476 476
                 computeEncoder->SetComputePipelineState(Emboss);
477 477
                 computeEncoder->SetResources(0, computebindSet);
@@ -498,8 +498,8 @@ public:
498 498
                     uboBuffer->Flush();
499 499
                     graphicShaderBindingSet->PostcomputeDescSet()->SetBuffer(0, uboBuffer, 0, sizeof(GraphicShaderBindingSet::UBO));
500 500
 
501
-                    graphicShaderBindingSet->PostcomputeDescSet()->SetTexture(0, targettex);
502
-                    graphicShaderBindingSet->PostcomputeDescSet()->SetSamplerState(0, sampler);
501
+                    graphicShaderBindingSet->PostcomputeDescSet()->SetTexture(1, targettex);
502
+                    graphicShaderBindingSet->PostcomputeDescSet()->SetSamplerState(1, sampler);
503 503
                 }
504 504
 
505 505
 				encoder->SetRenderPipelineState(pipelineState);