Merge pull request #2087 from rdb/patch-1
GLSL: Support GL_NV_shader_noperspective_interpolation in GLES
This commit is contained in:
commit
4212eef67e
@ -1249,7 +1249,15 @@ string CompilerGLSL::to_interpolation_qualifiers(const Bitset &flags)
|
|||||||
if (flags.get(DecorationFlat))
|
if (flags.get(DecorationFlat))
|
||||||
res += "flat ";
|
res += "flat ";
|
||||||
if (flags.get(DecorationNoPerspective))
|
if (flags.get(DecorationNoPerspective))
|
||||||
|
{
|
||||||
|
if (options.es)
|
||||||
|
{
|
||||||
|
if (options.version < 300)
|
||||||
|
SPIRV_CROSS_THROW("noperspective requires ESSL 300.");
|
||||||
|
require_extension_internal("GL_NV_shader_noperspective_interpolation");
|
||||||
|
}
|
||||||
res += "noperspective ";
|
res += "noperspective ";
|
||||||
|
}
|
||||||
if (flags.get(DecorationCentroid))
|
if (flags.get(DecorationCentroid))
|
||||||
res += "centroid ";
|
res += "centroid ";
|
||||||
if (flags.get(DecorationPatch))
|
if (flags.get(DecorationPatch))
|
||||||
|
Loading…
Reference in New Issue
Block a user