Selaa lähdekoodia

크래시만 수정.

Hongtae Kim 5 vuotta sitten
vanhempi
commit
b3e1f1e383
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      Samples/ComputeShader/ComputeShader.cpp

+ 4
- 4
Samples/ComputeShader/ComputeShader.cpp Näytä tiedosto

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