Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampler array initialization #21

Open
aras-p opened this issue Mar 8, 2013 · 0 comments
Open

Sampler array initialization #21

aras-p opened this issue Mar 8, 2013 · 0 comments

Comments

@aras-p
Copy link
Owner

aras-p commented Mar 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant