Lines Matching refs:i
97 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand() local
99 if (shape->IsVertexStream(i)) in SetupParticleVertexAttributeCommand()
101 s32 usage = shape->GetVertexAttributeUsage(i); in SetupParticleVertexAttributeCommand()
106 u32 format = shape->GetVertexAttributeFormatType(i); in SetupParticleVertexAttributeCommand()
107 u32 dimension = shape->GetVertexAttributeDimension(i); in SetupParticleVertexAttributeCommand()
112 u8* streamPtr = shape->GetVertexStreamPtr(i, bufferSide); in SetupParticleVertexAttributeCommand()
116 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex]); in SetupParticleVertexAttributeCommand()
129 for (s32 i = inputIndex; i < vtxAttrNum; ++i) in SetupParticleVertexAttributeCommand() local
143 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand() local
145 if (!shape->IsVertexStream(i)) in SetupParticleVertexAttributeCommand()
147 s32 usage = shape->GetVertexAttributeUsage(i); in SetupParticleVertexAttributeCommand()
156 int count = shape->GetVertexAttributeDimension(i); in SetupParticleVertexAttributeCommand()
157 f32* fdata = shape->GetVertexParameter(i); in SetupParticleVertexAttributeCommand()
166 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex + 2]); in SetupParticleVertexAttributeCommand()
215 for (s32 i = 0; i < vtxAttrNum; ++i) in SetupDeactivateParticleVertexAttributeCommand() local
217 if (shape->IsVertexStream(i)) in SetupDeactivateParticleVertexAttributeCommand()
231 for ( int i = 0; i < inputIndex; ++i ) in SetupDeactivateParticleVertexAttributeCommand() local
233 command[commandIndex++] = i; in SetupDeactivateParticleVertexAttributeCommand()
480 for (int i = 0; i < 2; ++i) in Create() local
483 node->m_PrimitiveBuffer[i] = devicememory; in Create()
489 u32 bufferAddr = nngxGetPhysicalAddr(reinterpret_cast<uptr>(node->m_PrimitiveBuffer[i])); in Create()
492 node->m_PrimitiveBufferOffset[i] = bufferAddr - baseAddr; in Create()
670 for (int i = 0; i < 2; ++i) in ParticleShape() local
672 m_CommandCache[i] = NULL; in ParticleShape()
673 m_CommandCacheSize[i] = 0; in ParticleShape()
687 for (int i = 0; i < 2; ++ i) in ~ParticleShape() local
689 if (this->m_CommandCache[i] != NULL) in ~ParticleShape()
691 this->m_CommandCache[i] = NULL; in ~ParticleShape()
692 this->m_CommandCacheSize[i] = 0; in ~ParticleShape()
712 for (s32 i = 0; i < this->GetVertexAttributesCount(); ++i) in FlushBuffer() local
714 if (this->IsVertexStream(i)) in FlushBuffer()
717 this->GetVertexStreamPtr(i, PARTICLE_BUFFER_FRONT), in FlushBuffer()
718 this->GetVertexCapacity() * this->GetVertexAttributeDimension(i) * sizeof(f32)); in FlushBuffer()