Hongtae Kim il y a 6 ans
Parent
révision
bcc4809e71
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3
    2
      TestApp1/TestApp1.cpp

+ 3
- 2
TestApp1/TestApp1.cpp Voir le fichier

@@ -297,7 +297,7 @@ class TestApp1 : public DKApplication
297 297
         DKVertexDescriptor vertexDescriptor = VertexDescriptorForVertexAttributes(vertShaderFunction->VertexAttributes());
298 298
 
299 299
         // setup rendering pipeline state object (PSO)
300
-        DKRenderPipelineDescriptor pipelineDescriptor;
300
+        DKRenderPipelineDescriptor pipelineDescriptor = {};
301 301
         pipelineDescriptor.vertexFunction = vertShaderFunction;
302 302
         pipelineDescriptor.fragmentFunction = fragShaderFunction;
303 303
         pipelineDescriptor.colorAttachments.Resize(1);
@@ -350,7 +350,8 @@ class TestApp1 : public DKApplication
350 350
         }
351 351
 
352 352
         // setup pipeline state object (PSO)
353
-        DKComputePipelineDescriptor pipelineDescriptor;
353
+        DKComputePipelineDescriptor pipelineDescriptor = {};
354
+        pipelineDescriptor.computeFunction = shaderFunction;
354 355
 
355 356
         DKComputePipelineReflection reflection;
356 357
         DKObject<DKComputePipelineState> pipelineState = device->CreateComputePipeline(pipelineDescriptor, &reflection);