Hongtae Kim 6 lat temu
rodzic
commit
8d9200a2a8
1 zmienionych plików z 6 dodań i 3 usunięć
  1. 6
    3
      TestApp1/TestApp1.cpp

+ 6
- 3
TestApp1/TestApp1.cpp Wyświetl plik

@@ -127,7 +127,7 @@ void PrintShaderResource(const DKShaderResource& res)
127 127
 				{
128 128
 					DKLogI(" %ls+TypeKey: %ls (struct)",
129 129
 						   (const wchar_t*)indentStr,
130
-						   (const wchar_t*)res.typeInfoKey);
130
+						   (const wchar_t*)mem.typeInfoKey);
131 131
 					MemberPrinter{ res, indent + 1 }.operator()(p->value);
132 132
 				}
133 133
 			}
@@ -193,8 +193,8 @@ public:
193 193
 		if (numItemsImported >= 0)
194 194
 			DKLogI("UserSettings: %ls (%d items imported)", (const wchar_t*)userConfigPath, numItemsImported);
195 195
 
196
-		DKObject<DKData> vertData = resourcePool.LoadResourceData("shaders/texture/texture.vert.spv");
197
-		DKObject<DKData> fragData = resourcePool.LoadResourceData("shaders/texture/texture.frag.spv");
196
+		DKObject<DKData> vertData = resourcePool.LoadResourceData("shaders/texturearray/instancing.vert.spv");
197
+		DKObject<DKData> fragData = resourcePool.LoadResourceData("shaders/texturearray/instancing.frag.spv");
198 198
 
199 199
 		struct Vertex
200 200
 		{
@@ -249,12 +249,15 @@ public:
249 249
 		DKObject<DKRenderPipelineState> pipelineState = device->CreateRenderPipeline(pipelineDescriptor, &reflection);
250 250
 		if (pipelineState)
251 251
 		{
252
+            DKLog("=========================================================");
252 253
 			DKLog("PipelineReflection.VertexResources: %d", reflection.vertexResources.Count());
253 254
 			for (auto& arg : reflection.vertexResources)
254 255
 				PrintShaderResource(arg);
256
+            DKLog("---------------------------------------------------------");
255 257
 			DKLog("PipelineReflection.FragmentResources: %d", reflection.fragmentResources.Count());
256 258
 			for (auto& arg : reflection.fragmentResources)
257 259
 				PrintShaderResource(arg);
260
+            DKLog("=========================================================");
258 261
 		}
259 262
 
260 263
 		Terminate(0);