@@ -40,7 +40,6 @@ class DeviceSelectionAndSharedSourcesApp final : public application_templates::M
40
40
if (!asset_base_t::onAppInitialized (std::move (system)))
41
41
return false ;
42
42
43
- // TODO: run-time sized buffers are not supporten in hlsl.. do it when testing glsl
44
43
// Just a check that out specialization info will match
45
44
// if (!introspection->canSpecializationlesslyCreateDescSetFrom())
46
45
// return logFail("Someone changed the shader and some descriptor binding depends on a specialization constant!");
@@ -59,11 +58,11 @@ class DeviceSelectionAndSharedSourcesApp final : public application_templates::M
59
58
}
60
59
61
60
CSPIRVIntrospector introspector;
62
- auto mainShader = this ->compileShaderAndTestIntrospection (" app_resources/shader.comp.hlsl" , introspector);
63
- auto source = mainShader .first ;
64
- auto mainShaderIntrospection = mainShader .second ;
61
+ auto compiledShader = this ->compileShaderAndTestIntrospection (" app_resources/shader.comp.hlsl" , introspector);
62
+ auto source = compiledShader .first ;
63
+ auto shaderIntrospection = compiledShader .second ;
65
64
66
- // mainShaderIntrospection ->debugPrint(m_logger.get());
65
+ // shaderIntrospection ->debugPrint(m_logger.get());
67
66
68
67
// We've now skipped the manual creation of a descriptor set layout, pipeline layout
69
68
ICPUShader::SSpecInfo specInfo;
@@ -314,6 +313,8 @@ class DeviceSelectionAndSharedSourcesApp final : public application_templates::M
314
313
const CSPIRVIntrospector::CStageIntrospectionData::SParams inspctParams = { .entryPoint = " main" , .shader = spirvUnspecialized };
315
314
316
315
introspection = introspector.introspect (inspctParams);
316
+ introspection->debugPrint (m_logger.get ());
317
+
317
318
if (!introspection)
318
319
{
319
320
logFail (" SPIR-V Introspection failed, probably the required SPIR-V compilation failed first!" );
0 commit comments