mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
This commit is contained in:
committed by
GitHub
parent
8a60697cfd
commit
3a652bbc7a
@@ -1977,6 +1977,22 @@ namespace bgfx
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hasPrimitiveId)
|
||||||
|
{
|
||||||
|
if (profile->id >= 400)
|
||||||
|
{
|
||||||
|
preprocessor.writef(
|
||||||
|
" \\\n\t%suint gl_PrimitiveID : SV_PrimitiveID"
|
||||||
|
, arg++ > 0 ? ", " : " "
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bx::write(_messageWriter, &messageErr, "gl_PrimitiveID builtin is not supported by D3D9 HLSL.\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (hasFrontFacing)
|
if (hasFrontFacing)
|
||||||
{
|
{
|
||||||
if (profile->id < 400)
|
if (profile->id < 400)
|
||||||
@@ -1995,22 +2011,6 @@ namespace bgfx
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasPrimitiveId)
|
|
||||||
{
|
|
||||||
if (profile->id >= 400)
|
|
||||||
{
|
|
||||||
preprocessor.writef(
|
|
||||||
" \\\n\t%suint gl_PrimitiveID : SV_PrimitiveID"
|
|
||||||
, arg++ > 0 ? ", " : " "
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
bx::write(_messageWriter, &messageErr, "gl_PrimitiveID builtin is not supported by D3D9 HLSL.\n");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
preprocessor.writef(
|
preprocessor.writef(
|
||||||
" \\\n\t)\n"
|
" \\\n\t)\n"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user