소스 검색

크래시만 수정.

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);