Browse Source

no message

Hongtae Kim 6 years ago
parent
commit
b045c6b86a
1 changed files with 13 additions and 1 deletions
  1. 13
    1
      TestApp1/TestApp1.cpp

+ 13
- 1
TestApp1/TestApp1.cpp View File

@@ -32,6 +32,13 @@ public:
32 32
 		DKObject<DKCommandQueue> queue = device->CreateCommandQueue(DKCommandQueue::Graphics);
33 33
 		DKObject<DKSwapChain> swapChain = queue->CreateSwapChain(window);
34 34
 
35
+		DKLog("VertexFunction.VertexAttributes: %d", vertShaderFunction->VertexAttributes().Count());
36
+		for (int i = 0; i < vertShaderFunction->VertexAttributes().Count(); ++i)
37
+		{ 
38
+			const DKVertexAttribute& attr = vertShaderFunction->VertexAttributes().Value(i);
39
+			DKLog("  --> VertexAttribute[%d]: %ls (%u)", i, (const wchar_t*)attr.name, attr.location);
40
+		}
41
+
35 42
 		struct Vertex
36 43
 		{
37 44
 			DKVector3 position;
@@ -75,8 +82,13 @@ public:
75 82
 		pipelineDescriptor.cullMode = DKCullMode::None;
76 83
 		pipelineDescriptor.rasterizationEnabled = true;
77 84
 
78
-		DKPipelineReflection reflection;
85
+		DKRenderPipelineReflection reflection;
79 86
 		DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, &reflection);
87
+		if (pipelineState)
88
+		{
89
+			DKLog("PipelineReflection.VertexArguments: %d", reflection.vertexArguments.Count());
90
+			DKLog("PipelineReflection.FragmentArguments: %d", reflection.fragmentArguments.Count());
91
+		}
80 92
 
81 93
 		DKTimer timer;
82 94
 		timer.Reset();