Ignore:
Timestamp:
10/09/15 14:06:56 (10 years ago)
Author:
epyon
Message:
  • rtti updates
  • device/context initial uniform buffer support
  • fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r471 r473  
    337337                }
    338338        }
     339        return -1;
     340}
     341
     342int nv::gl_device::get_block_location( program p, const string_view& name, bool fatal /*= true */ ) const
     343{
    339344        return -1;
    340345}
     
    450455{
    451456        int params;
     457        int bparams;
    452458        glGetProgramiv( p->glid, GL_ACTIVE_UNIFORMS, &params );
     459        glGetProgramiv( p->glid, GL_ACTIVE_UNIFORM_BLOCKS, &bparams );
    453460
    454461        for ( unsigned i = 0; i < unsigned( params ); ++i )
     
    479486                NV_ASSERT( u, "Unknown uniform type!" );
    480487                (*p->m_uniform_map)[ name ] = u;
     488        }
     489
     490        for ( unsigned i = 0; i < unsigned( bparams ); ++i )
     491        {
     492                int uni_len;
     493                char name_buffer[128];
     494
     495                glGetActiveUniformBlockName( p->glid, i, 128, &uni_len, name_buffer );
     496                NV_LOG_INFO( string_view( name_buffer, size_t( uni_len ) ) );
    481497        }
    482498}
Note: See TracChangeset for help on using the changeset viewer.