|
|
|
|
37
|
pipelineDescriptor.fragmentFunction = fragShaderFunction;
|
37
|
pipelineDescriptor.fragmentFunction = fragShaderFunction;
|
38
|
pipelineDescriptor.colorAttachments.Resize(1);
|
38
|
pipelineDescriptor.colorAttachments.Resize(1);
|
39
|
pipelineDescriptor.colorAttachments.Value(0).pixelFormat = swapChain->ColorPixelFormat();
|
39
|
pipelineDescriptor.colorAttachments.Value(0).pixelFormat = swapChain->ColorPixelFormat();
|
|
|
40
|
+ pipelineDescriptor.rasterizationEnabled = true;
|
40
|
|
41
|
|
41
|
|
42
|
|
42
|
DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, NULL);
|
43
|
DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, NULL);
|