@@ -48,7 +48,7 @@ class HLSLComputePathtracer final : public examples::SimpleWindowedApplication,
4848 constexpr static inline uint32_t2 WindowDimensions = { 1280 , 720 };
4949 constexpr static inline uint32_t MaxFramesInFlight = 5 ;
5050 constexpr static inline clock_t ::duration DisplayImageDuration = std::chrono::milliseconds(900 );
51- constexpr static inline uint32_t DefaultWorkGroupSize = 256u ;
51+ constexpr static inline uint32_t DefaultWorkGroupSize = 1024u ;
5252 constexpr static inline uint32_t MaxDescriptorCount = 256u ;
5353 constexpr static inline uint32_t MaxDepthLog2 = 4u ; // 5
5454 constexpr static inline uint32_t MaxSamplesLog2 = 10u ; // 18
@@ -366,12 +366,12 @@ class HLSLComputePathtracer final : public examples::SimpleWindowedApplication,
366366 options.stage = IShader::E_SHADER_STAGE::ESS_COMPUTE; // should be compute
367367 options.targetSpirvVersion = m_device->getPhysicalDevice ()->getLimits ().spirvVersion ;
368368 options.spirvOptimizer = nullptr ;
369- #ifndef _NBL_DEBUG
370- ISPIRVOptimizer::E_OPTIMIZER_PASS optPasses = ISPIRVOptimizer::EOP_STRIP_DEBUG_INFO;
371- auto opt = make_smart_refctd_ptr<ISPIRVOptimizer>(std::span<ISPIRVOptimizer::E_OPTIMIZER_PASS>(&optPasses, 1 ));
372- options.spirvOptimizer = opt.get ();
373- #endif
374- options.debugInfoFlags = IShaderCompiler::E_DEBUG_INFO_FLAGS::EDIF_NONE ;
369+ // #ifndef _NBL_DEBUG
370+ // ISPIRVOptimizer::E_OPTIMIZER_PASS optPasses = ISPIRVOptimizer::EOP_STRIP_DEBUG_INFO;
371+ // auto opt = make_smart_refctd_ptr<ISPIRVOptimizer>(std::span<ISPIRVOptimizer::E_OPTIMIZER_PASS>(&optPasses, 1));
372+ // options.spirvOptimizer = opt.get();
373+ // #endif
374+ options.debugInfoFlags | = IShaderCompiler::E_DEBUG_INFO_FLAGS::EDIF_LINE_BIT ;
375375 options.preprocessorOptions .sourceIdentifier = source->getFilepathHint ();
376376 options.preprocessorOptions .logger = m_logger.get ();
377377 options.preprocessorOptions .includeFinder = compiler->getDefaultIncludeFinder ();
@@ -1348,7 +1348,7 @@ class HLSLComputePathtracer final : public examples::SimpleWindowedApplication,
13481348 float camYAngle = 165 .f / 180 .f * 3 .14159f ;
13491349 float camXAngle = 32 .f / 180 .f * 3 .14159f ;
13501350 int PTPipline = E_LIGHT_GEOMETRY::ELG_SPHERE;
1351- int renderMode = E_RENDER_MODE::ERM_HLSL ;
1351+ int renderMode = E_RENDER_MODE::ERM_GLSL ;
13521352 int spp = 32 ;
13531353 int depth = 3 ;
13541354
0 commit comments