瀏覽代碼

no message

Hongtae Kim 7 年之前
父節點
當前提交
4ad2caaaf9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      TestApp1/TestApp1.cpp

+ 1
- 0
TestApp1/TestApp1.cpp 查看文件

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