@@ -269,7 +269,7 @@ core::smart_refctd_ptr<IGPUShader> ILogicalDevice::createShader(const SShaderCre
269
269
{
270
270
if (!creationParams.cpushader )
271
271
{
272
- m_logger.log (" No valid CPU Shader supplied" , system::ILogger::ELL_ERROR);
272
+ m_logger.log (" No valid CPU Shader supplied [%s - %s:%p] " , system::ILogger::ELL_ERROR, __FUNCTION__, __FILE__, __LINE__ );
273
273
return nullptr ;
274
274
}
275
275
@@ -289,14 +289,14 @@ core::smart_refctd_ptr<IGPUShader> ILogicalDevice::createShader(const SShaderCre
289
289
case IGPUShader::E_SHADER_STAGE::ESS_TESSELLATION_EVALUATION:
290
290
if (!features.tessellationShader )
291
291
{
292
- m_logger.log (" Cannot create IGPUShader for %p, Tessellation Shader feature not enabled!" , system::ILogger::ELL_ERROR,creationParams.cpushader );
292
+ m_logger.log (" Cannot create IGPUShader for %p, Tessellation Shader feature not enabled! [%s - %s:%p] " , system::ILogger::ELL_ERROR, creationParams.cpushader , __FUNCTION__, __FILE__, __LINE__ );
293
293
return nullptr ;
294
294
}
295
295
break ;
296
296
case IGPUShader::E_SHADER_STAGE::ESS_GEOMETRY:
297
297
if (!features.geometryShader )
298
298
{
299
- m_logger.log (" Cannot create IGPUShader for %p, Geometry Shader feature not enabled!" , system::ILogger::ELL_ERROR,creationParams.cpushader );
299
+ m_logger.log (" Cannot create IGPUShader for %p, Geometry Shader feature not enabled! [%s - %s:%p] " , system::ILogger::ELL_ERROR, creationParams.cpushader , __FUNCTION__, __FILE__, __LINE__ );
300
300
return nullptr ;
301
301
}
302
302
break ;
@@ -317,13 +317,13 @@ core::smart_refctd_ptr<IGPUShader> ILogicalDevice::createShader(const SShaderCre
317
317
case IGPUShader::E_SHADER_STAGE::ESS_CALLABLE:
318
318
if (!features.rayTracingPipeline )
319
319
{
320
- m_logger.log (" Cannot create IGPUShader for %p, Raytracing Pipeline feature not enabled!" , system::ILogger::ELL_ERROR,creationParams.cpushader );
320
+ m_logger.log (" Cannot create IGPUShader for %p, Raytracing Pipeline feature not enabled! [%s - %s:%p] " , system::ILogger::ELL_ERROR, creationParams.cpushader , __FUNCTION__, __FILE__, __LINE__ );
321
321
return nullptr ;
322
322
}
323
323
break ;
324
324
default :
325
325
// Implicit unsupported stages or weird multi-bit stage enum values
326
- m_logger.log (" Unknown Shader Stage %d" , system::ILogger::ELL_ERROR,shaderStage);
326
+ m_logger.log (" Unknown Shader Stage %d [%s - %s:%p] " , system::ILogger::ELL_ERROR, shaderStage, __FUNCTION__, __FILE__, __LINE__ );
327
327
return nullptr ;
328
328
break ;
329
329
}
@@ -366,15 +366,15 @@ core::smart_refctd_ptr<IGPUShader> ILogicalDevice::createShader(const SShaderCre
366
366
367
367
if (!spirvShader)
368
368
{
369
- m_logger.log (" SPIR-V Compilation from non SPIR-V shader %p failed. " , system::ILogger::ELL_ERROR,creationParams.cpushader );
369
+ m_logger.log (" SPIR-V Compilation from non SPIR-V shader %p failed [%s - %s:%p] " , system::ILogger::ELL_ERROR, creationParams.cpushader , __FUNCTION__, __FILE__, __LINE__ );
370
370
return nullptr ;
371
371
}
372
372
}
373
373
374
374
auto spirv = spirvShader->getContent ();
375
375
if (!spirv)
376
376
{
377
- m_logger.log (" SPIR-V Compilation from non SPIR-V shader %p failed. " , system::ILogger::ELL_ERROR,creationParams.cpushader );
377
+ m_logger.log (" SPIR-V Compilation from non SPIR-V shader %p failed [%s - %s:%p] " , system::ILogger::ELL_ERROR, creationParams.cpushader , __FUNCTION__, __FILE__, __LINE__ );
378
378
return nullptr ;
379
379
}
380
380
0 commit comments