Browse Source

크래시만 수정.

Hongtae Kim 5 years ago
parent
commit
b3e1f1e383
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Samples/ComputeShader/ComputeShader.cpp

+ 4
- 4
Samples/ComputeShader/ComputeShader.cpp View File

469
                 if (computebindSet)
469
                 if (computebindSet)
470
                 {
470
                 {
471
                     computebindSet->SetTexture(0, texture);
471
                     computebindSet->SetTexture(0, texture);
472
-                    computebindSet->SetSamplerState(0, sampler);
472
+                    //computebindSet->SetSamplerState(0, sampler);
473
                     computebindSet->SetTexture(1, targettex);
473
                     computebindSet->SetTexture(1, targettex);
474
-                    computebindSet->SetSamplerState(1, sampler);
474
+                    //computebindSet->SetSamplerState(1, sampler);
475
                 }
475
                 }
476
                 computeEncoder->SetComputePipelineState(Emboss);
476
                 computeEncoder->SetComputePipelineState(Emboss);
477
                 computeEncoder->SetResources(0, computebindSet);
477
                 computeEncoder->SetResources(0, computebindSet);
498
                     uboBuffer->Flush();
498
                     uboBuffer->Flush();
499
                     graphicShaderBindingSet->PostcomputeDescSet()->SetBuffer(0, uboBuffer, 0, sizeof(GraphicShaderBindingSet::UBO));
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
 				encoder->SetRenderPipelineState(pipelineState);
505
 				encoder->SetRenderPipelineState(pipelineState);