Reserve last input slot for draw call info

This commit is contained in:
Atlante45 2016-01-15 14:25:16 -08:00
parent 78cd4407db
commit 1658c15cca
3 changed files with 4 additions and 6 deletions

View file

@ -193,7 +193,7 @@ public:
static const int MAX_NUM_ATTRIBUTES = Stream::NUM_INPUT_SLOTS;
static const int MAX_NUM_INPUT_BUFFERS = 16;
static const int MAX_NUM_INPUT_BUFFERS = Stream::NUM_INPUT_SLOTS;
size_t getNumInputBuffers() const { return _input._invalidBuffers.size(); }

View file

@ -38,10 +38,7 @@ const ElementArray& getDefaultElements() {
//INSTANCE_SCALE = 8,
Element::VEC3F_XYZ,
//INSTANCE_TRANSLATE = 9,
Element::VEC3F_XYZ,
//INSTANCE_XFM = 10,
// FIXME make a matrix element
Element::VEC4F_XYZW
Element::VEC3F_XYZ
}};
return defaultElements;
}

View file

@ -40,8 +40,9 @@ public:
INSTANCE_SCALE = 8,
INSTANCE_TRANSLATE = 9,
DRAW_CALL_INFO = 15, // Reserve last input slot for draw call infos
NUM_INPUT_SLOTS = DRAW_CALL_INFO + 1,
NUM_INPUT_SLOTS = DRAW_CALL_INFO
};
typedef uint8 Slot;