Browse Source

no message

Hongtae Kim 6 years ago
parent
commit
bcc4809e71
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      TestApp1/TestApp1.cpp

+ 3
- 2
TestApp1/TestApp1.cpp View File

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