You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been following development of HLSL and are happy to see that since cbuffer have been added, our HLSL can mostly be converter to SPIR-V as is, good work!
There is still one small thing that fails (that we could easily workaround on our side, but still letting you know because it is valid HLSL):
ERROR: 0:572: 'constructor' : not enough data provided for construction
ERROR: 0:572: '=' : cannot convert from 'const float' to 'temp structure{temp 4-component vector of float ColorTarget_id1}'
The text was updated successfully, but these errors were encountered:
xen2
changed the title
HLSL: structure initializer cast
HLSL: structure zero initializer
Jul 26, 2016
xen2
changed the title
HLSL: structure zero initializer
HLSL: structure cast with zero
Jul 26, 2016
This is used quite a bit by us, but can work around for now. needs to get fixed though. It's not an uncommon pattern in HLSL, often used for VSs because HLSL enforces that all parameters have something by default.
I have been following development of HLSL and are happy to see that since cbuffer have been added, our HLSL can mostly be converter to SPIR-V as is, good work!
There is still one small thing that fails (that we could easily workaround on our side, but still letting you know because it is valid HLSL):
works with FXC compiler, but fails with glslang:
The text was updated successfully, but these errors were encountered: