mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 10:27:42 +00:00
Working HECL shader generation on D3D11/12
This commit is contained in:
@@ -10,17 +10,17 @@ namespace Frontend
|
||||
|
||||
void Parser::skipWhitespace(std::string::const_iterator& it)
|
||||
{
|
||||
while (true)
|
||||
while (it != m_source->cend())
|
||||
{
|
||||
while (isspace(*it) && it != m_source->cend())
|
||||
while (it != m_source->cend() && isspace(*it))
|
||||
++it;
|
||||
|
||||
/* Skip comment line */
|
||||
if (*it == '#')
|
||||
if (it != m_source->cend() && *it == '#')
|
||||
{
|
||||
while (*it != '\n' && it != m_source->cend())
|
||||
while (it != m_source->cend() && *it != '\n')
|
||||
++it;
|
||||
if (*it == '\n')
|
||||
if (it != m_source->cend() && *it == '\n')
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user