We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HLSL2GLSL cannot figure out what sampler type to cast to if the parameter and argument sampler type differ:
// You can't pass a generic sampler type ("sampler") to this float4 my_function(sampler2D s, float2 uv) { return tex2D(s, uv); }
// You can ONLY pass a generic sampler type ("sampler") to this float4 my_function(sampler s, float2 uv) { return tex2D(s, uv); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
HLSL2GLSL cannot figure out what sampler type to cast to if the parameter and argument sampler type differ:
// You can't pass a generic sampler type ("sampler") to this
float4 my_function(sampler2D s, float2 uv) {
return tex2D(s, uv);
}
// You can ONLY pass a generic sampler type ("sampler") to this
float4 my_function(sampler s, float2 uv) {
return tex2D(s, uv);
}
The text was updated successfully, but these errors were encountered: