#include <msp/core/algorithm.h>
-#include <msp/core/maputils.h>
#include <msp/debug/demangle.h>
-#include <msp/gl/extensions/arb_direct_state_access.h>
#include <msp/io/print.h>
#include "buffer.h"
#include "color.h"
namespace GL {
ProgramData::ProgramData(const Program *p):
- tied_program(p),
- generation(0),
- last_buffer_block(0),
- buffer(0),
- dirty(0)
+ tied_program(p)
{ }
// Blocks are intentionally left uncopied
tied_program(other.tied_program),
uniforms(other.uniforms),
uniform_data(other.uniform_data),
- generation(other.generation),
- last_buffer_block(0),
- buffer(0),
- dirty(0)
+ generation(other.generation)
{ }
ProgramData::ProgramData(const ProgramData &other, const Program *p):
- tied_program(p),
- last_buffer_block(0),
- buffer(0),
- dirty(0)
+ tied_program(p)
{
if(tied_program)
{
}
-ProgramData::TaggedUniform::TaggedUniform():
- type(VOID),
- array_size(0),
- data_offset(0),
- data_size(0)
-{ }
-
-
ProgramData::SharedBlock::SharedBlock(ReflectData::LayoutHash h):
block_hash(h),
used(0),