mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Reserve last input slot for draw call info
This commit is contained in:
parent
78cd4407db
commit
1658c15cca
3 changed files with 4 additions and 6 deletions
|
@ -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(); }
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue