Skip to content

Dissolve Interleaved Token Stream Chunks and PP Directives #6

@dsheets

Description

@dsheets

Presently something like:

void main() {

if X

gl_Position = vec4(0.,0.,0.,1.);

else

gl_Position = vec4(1.,1.,1.,1.);

endif

}

does not properly dissolve. To correctly dissolve this, the 'dissolve' function in glo.ml needs to detect EsslParseErrors occurring at the initial or final tokens in a Chunk token stream and then attempt to fuse the chunk with the appropriate neighboring chunks under the preprocessor recursively (and yield the original sequence of preprocessor expressions that successfully parse as ESSL).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions