Lines Matching refs:drawCommand
237 DrawArraysCommand drawCommand;
238 drawCommand.count = overBoundDrawCount;
239 drawCommand.primCount = (m_op == INVALID_DATA_INSTANCED) ? (overBoundInstances) : (drawInstances);
240 drawCommand.first = (m_op == INVALID_DATA_FIRST) ? (overBoundDrawCount) : (0);
241 drawCommand.reservedMustBeZero = (m_op == INVALID_RESERVED) ? (5) : (0);
245 << "drawCommand:"
246 << "\n\tcount:\t" << drawCommand.count
247 << "\n\tprimCount\t" << drawCommand.primCount
248 << "\n\tfirst\t" << drawCommand.first
249 << "\n\treservedMustBeZero\t" << drawCommand.reservedMustBeZero
254 gl.glBufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(drawCommand), &drawCommand, GL_STATIC_DRAW);
259 DrawElementsCommand drawCommand;
260 drawCommand.count = overBoundDrawCount;
261 drawCommand.primCount = (m_op == INVALID_DATA_INSTANCED) ? (overBoundInstances) : (drawInstances);
262 drawCommand.firstIndex = (m_op == INVALID_INDEX_FIRST) ? (overBoundDrawCount) : (0);
263 drawCommand.baseVertex = (m_op == INVALID_DATA_FIRST) ? (overBoundDrawCount) : (0);
264 drawCommand.reservedMustBeZero = (m_op == INVALID_RESERVED) ? (5) : (0);
268 << "drawCommand:"
269 << "\n\tcount:\t" << drawCommand.count
270 << "\n\tprimCount\t" << drawCommand.primCount
271 << "\n\tfirstIndex\t" << drawCommand.firstIndex
272 << "\n\tbaseVertex\t" << drawCommand.baseVertex
273 << "\n\treservedMustBeZero\t" << drawCommand.reservedMustBeZero
278 gl.glBufferData(GL_DRAW_INDIRECT_BUFFER, sizeof(drawCommand), &drawCommand, GL_STATIC_DRAW);