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