瀏覽代碼

get reflection when creating render-pipeline

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

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

@@ -75,7 +75,8 @@ public:
75 75
 		pipelineDescriptor.cullMode = DKCullMode::None;
76 76
 		pipelineDescriptor.rasterizationEnabled = true;
77 77
 
78
-		DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, NULL);
78
+		DKPipelineReflection reflection;
79
+		DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, &reflection);
79 80
 
80 81
 		DKTimer timer;
81 82
 		timer.Reset();