Lines Matching refs:commandIndex

94     u32 commandIndex = 12;  in SetupParticleVertexAttributeCommand()  local
118 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex]); in SetupParticleVertexAttributeCommand()
122 command[commandIndex++] = bufferAddr - baseAddr; in SetupParticleVertexAttributeCommand()
123 command[commandIndex++] = inputIndex; in SetupParticleVertexAttributeCommand()
124 …command[commandIndex++] = (internal::CommandCacheHelper::GetVertexSize(dimension, format) << 16) +… in SetupParticleVertexAttributeCommand()
133 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
134 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
135 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
139 if ((commandIndex & 1) == 1) in SetupParticleVertexAttributeCommand()
141 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
168 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex + 2]); in SetupParticleVertexAttributeCommand()
170 command[commandIndex] = inputIndex; in SetupParticleVertexAttributeCommand()
171 command[commandIndex + 1] = HEADER_VTX_PARAM_INDEX; in SetupParticleVertexAttributeCommand()
172 command[commandIndex + 2] = (data[3] << 8) | (data[2] >> 16); in SetupParticleVertexAttributeCommand()
173 command[commandIndex + 3] = (data[2] << 16) | (data[1] >> 8); in SetupParticleVertexAttributeCommand()
174 command[commandIndex + 4] = (data[1] << 24) | (data[0]); in SetupParticleVertexAttributeCommand()
175 command[commandIndex + 5] = 0; in SetupParticleVertexAttributeCommand()
180 commandIndex += 6; in SetupParticleVertexAttributeCommand()
186 command[commandIndex + 0] = 0x76543210; in SetupParticleVertexAttributeCommand()
187 command[commandIndex + 1] = HEADER_GEOM_MAP_0; in SetupParticleVertexAttributeCommand()
188 command[commandIndex + 2] = 0xfedcba98; in SetupParticleVertexAttributeCommand()
189 command[commandIndex + 3] = 0; in SetupParticleVertexAttributeCommand()
190 commandIndex += 4; in SetupParticleVertexAttributeCommand()
192 shape->m_CommandCacheSize[bufferSide] = commandIndex * sizeof(u32); in SetupParticleVertexAttributeCommand()
214 u32 commandIndex = 0; in SetupDeactivateParticleVertexAttributeCommand() local
223 command[commandIndex++] = 0; in SetupDeactivateParticleVertexAttributeCommand()
224 …command[commandIndex++] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 2 + 3 * inputIndex, 1… in SetupDeactivateParticleVertexAttributeCommand()
235 command[commandIndex++] = i; in SetupDeactivateParticleVertexAttributeCommand()
236 command[commandIndex++] = HEADER_VTX_PARAM_INDEX; in SetupDeactivateParticleVertexAttributeCommand()
237 command[commandIndex++] = 0; in SetupDeactivateParticleVertexAttributeCommand()
238 command[commandIndex++] = 0; in SetupDeactivateParticleVertexAttributeCommand()
239 command[commandIndex++] = 0; in SetupDeactivateParticleVertexAttributeCommand()
240 command[commandIndex++] = 0; in SetupDeactivateParticleVertexAttributeCommand()
243 shape->m_DeactivateVertexCommandCacheSize = commandIndex * sizeof(u32); in SetupDeactivateParticleVertexAttributeCommand()
273 u32 commandIndex = 0; in CreatePrimitiveCommandCache() local
307 command[commandIndex++] = 0x7fff0000 | (type << 1); // bit0は予約されているため、bit1から配置する in CreatePrimitiveCommandCache()
308 command[commandIndex++] = HEADER_VERTEX_UNIFORM_BOOL; in CreatePrimitiveCommandCache()
309 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
310 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
311 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
312 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
314 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
315 command[commandIndex++] = HEADER_ELEMENTS_MODE; in CreatePrimitiveCommandCache()
316 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
317 command[commandIndex++] = HEADER_ELEMENTS_MODE_2; in CreatePrimitiveCommandCache()
318 command[commandIndex++] = 3 << 8; in CreatePrimitiveCommandCache()
319 command[commandIndex++] = HEADER_ELEMENTS_MODE_3; in CreatePrimitiveCommandCache()
320 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
321 command[commandIndex++] = HEADER_TRIANGLE_INDEX_RESET; in CreatePrimitiveCommandCache()
322 command[commandIndex++] = 0; in CreatePrimitiveCommandCache()
323 command[commandIndex++] = HEADER_DRAW_READY; in CreatePrimitiveCommandCache()
324 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
325 command[commandIndex++] = HEADER_DRAW_KICK; in CreatePrimitiveCommandCache()
326 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
327 command[commandIndex++] = HEADER_DRAW_READY; in CreatePrimitiveCommandCache()
328 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
329 command[commandIndex++] = HEADER_VERTEX_CACHE_CLEAR; in CreatePrimitiveCommandCache()
330 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
331 command[commandIndex++] = HEADER_COLOR_DEPTH_CACHE_FLUSH; in CreatePrimitiveCommandCache()
332 command[commandIndex++] = 1; in CreatePrimitiveCommandCache()
333 command[commandIndex++] = HEADER_COLOR_DEPTH_CACHE_CLEAR; in CreatePrimitiveCommandCache()
335 NW_ASSERT(commandIndex == PrimitiveCommandSize); in CreatePrimitiveCommandCache()
337 shape->m_PrimitiveCommandCacheSize = commandIndex * sizeof(u32); in CreatePrimitiveCommandCache()