hlsl2glslfork icon indicating copy to clipboard operation
hlsl2glslfork copied to clipboard

Sampler array initialization

Open aras-p opened this issue 11 years ago • 0 comments

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.

aras-p avatar Mar 08 '13 08:03 aras-p