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