Browse Source

get reflection when creating render-pipeline

Hongtae Kim 6 years ago
parent
commit
9cad29f187
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      TestApp1/TestApp1.cpp

+ 2
- 1
TestApp1/TestApp1.cpp View File

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