Ignore:
Timestamp:
Apr 14, 2012, 8:28:15 PM (9 years ago)
Author:
sam
Message:

gpu: implement vertex buffer streams for Direct3D. OpenGL is missing for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/shader.h

    r1215 r1227  
    3535};
    3636
     37struct ShaderAttrib
     38{
     39    friend class Shader;
     40    friend class VertexDeclaration;
     41
     42public:
     43    ShaderAttrib(int flags = 0xffffffff) : m_flags(flags) {}
     44
     45private:
     46    uint32_t m_flags;
     47};
     48
    3749class ShaderData;
    3850
     
    4355    static void Destroy(Shader *shader);
    4456
    45     int GetAttribLocation(char const *attr) const;
     57    ShaderAttrib GetAttribLocation(char const *attr, struct VertexUsage usage,
     58                                   int index) const;
    4659
    4760    ShaderUniform GetUniformLocation(char const *uni) const;
Note: See TracChangeset for help on using the changeset viewer.