瀏覽代碼

no message

Hongtae Kim 7 年之前
父節點
當前提交
bcc4809e71
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      TestApp1/TestApp1.cpp

+ 3
- 2
TestApp1/TestApp1.cpp 查看文件

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