Skip to content
New issue

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

Layout qualifier location standard #18

Open
shrekshao opened this issue Dec 30, 2015 · 0 comments
Open

Layout qualifier location standard #18

shrekshao opened this issue Dec 30, 2015 · 0 comments
Labels

Comments

@shrekshao
Copy link
Member

From Christ ogl sample:
Might follow this later

namespace semantic
{
    namespace buffer
    {
        enum type
        {
            STATIC = 0,
            DYNAMIC = 1
        };
    };

    namespace uniform
    {
        enum type
        {
            MATERIAL = 0,
            TRANSFORM0 = 1,
            TRANSFORM1 = 2,
            INDIRECTION = 3,
            CONSTANT = 0,
            PER_FRAME = 1,
            PER_PASS = 2,
            LIGHT = 3
        };
    };

    namespace sampler
    {
        enum type
        {
            DIFFUSE     = 0,
            POSITION    = 4,
            TEXCOORD    = 5,
            COLOR       = 6
        };
    }//namespace sampler

    namespace image
    {
        enum type
        {
            DIFFUSE = 0,
            PICKING = 1
        };
    }//namesapce image

    namespace attr
    {
        enum type
        {
            POSITION = 0,
            NORMAL   = 1,
            COLOR    = 3,
            TEXCOORD = 4,
            DRAW_ID  = 5
        };
    }//namespace attr

    namespace vert
    {
        enum type
        {
            POSITION = 0,
            COLOR    = 3,
            TEXCOORD = 4,
            INSTANCE = 7
        };
    }//namespace vert

    namespace frag
    {
        enum type
        {
            COLOR   = 0,
            RED     = 0,
            GREEN   = 1,
            BLUE    = 2,
            ALPHA   = 0
        };
    }//namespace frag

    namespace renderbuffer
    {
        enum type
        {
            DEPTH,
            COLOR0
        };
    }//namespace renderbuffer

    namespace storage
    {
        enum type
        {
            VERTEX  = 0
        };
    }//namespace storage
}//namespace semantic
@trungtle trungtle mentioned this issue Dec 30, 2015
@shrekshao shrekshao added the Note label Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant