hlsl2glslfork
hlsl2glslfork copied to clipboard
Sampler array initialization
GLSL does not have a generic sampler type ("sampler") and that's not usually a problem as HLSL2GLSL can usually figure out what a sampler's type needs to be from it's usage, but this doesn't work for sampler arrays. So if you're declaring a sampler array in HLSL, make sure to use the explicit sampler type: sampler1D, sampler2D, samplerCUBE etc.