Browse Source

버그 수정..

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

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

317
 		}
317
 		}
318
 
318
 
319
 		
319
 		
320
-		DKRenderPipelineDescriptor pipelineDescriptor;
320
+        DKRenderPipelineDescriptor pipelineDescriptor = {};
321
         // setup shader
321
         // setup shader
322
         pipelineDescriptor.vertexFunction = vsf;
322
         pipelineDescriptor.vertexFunction = vsf;
323
 		pipelineDescriptor.fragmentFunction = fsf;
323
 		pipelineDescriptor.fragmentFunction = fsf;
382
         //auto CS_EDF = CS_ED->Function();
382
         //auto CS_EDF = CS_ED->Function();
383
         //auto CS_SHF = CS_SH->Function();
383
         //auto CS_SHF = CS_SH->Function();
384
 
384
 
385
-        DKComputePipelineDescriptor embossComputePipelineDescriptor;
385
+        DKComputePipelineDescriptor embossComputePipelineDescriptor = {};
386
         embossComputePipelineDescriptor.computeFunction = cs_ef;
386
         embossComputePipelineDescriptor.computeFunction = cs_ef;
387
         DKObject<DKComputePipelineState> emboss = device->CreateComputePipeline(embossComputePipelineDescriptor);
387
         DKObject<DKComputePipelineState> emboss = device->CreateComputePipeline(embossComputePipelineDescriptor);
388
         
388