Jump to content

s_light_shadow_iradius has different type across shaders


photo

Recommended Posts

Posted

For Intel graphics card I have observed that one of our shader is not getting compiled, and throws error:

 

Uniform "s_light_shadow_iradius" has different type across different shaders.

 

Its been observed that data\core\shaders\default\common\common_base.h is having it as half4 and float4 both.

 

Which should be the appropriate type here?

Posted

Priyank.Jain2

 

Could you please specify:

  1. Graphics API,
  2. GPU Driver version
  3. SDK version

If you can also provide a small test sample for reproduction - it will be very helpful.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

  1. Graphics API : OpenGL

GPU Driver version:

  • Intel® HD Graphics 4400, driver 10.18.14.4432

Intel® HD Graphics 5000, driver 20.19.15.4331

Intel® HD Graphics family, driver 20.19.15.4483

Intel® HD Graphics 520, driver 20.19.15.453

SDK version : 2.3.1

I will try to create a test sample, but till then do you see any potential issue if I use float4 at both places because that solves the issue for now and we are nearing the release.

 

Posted

Priyank.Jain2

 

If it's working OK on your PCs and you see no artifacts there, I will assume that fix is correct.

 

We can tell you more when we will receive a small test sample and perform some additional debugging.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Yes for us it worked when we changed s_light_shadow_iradius to float in common_base.h.

 

It was we basically required to maintain the type with shaders\common\parameters.h

×
×
  • Create New...