Hongtae Kim 4 роки тому
джерело
коміт
2ababc0864
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      Samples/ComputeShader/ComputeShader.cpp

+ 2
- 2
Samples/ComputeShader/ComputeShader.cpp Переглянути файл

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