Lines Matching refs:shape

42     ParticleShape* shape,  in SetupParticleVertexAttributeCommand()  argument
63 s32 vtxAttrNum = shape->GetVertexAttributesCount(); in SetupParticleVertexAttributeCommand()
65 u32* command = reinterpret_cast<u32*>(shape->m_CommandCache[bufferSide]); in SetupParticleVertexAttributeCommand()
99 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand()
101 if (shape->IsVertexStream(i)) in SetupParticleVertexAttributeCommand()
103 s32 usage = shape->GetVertexAttributeUsage(i); in SetupParticleVertexAttributeCommand()
108 u32 format = shape->GetVertexAttributeFormatType(i); in SetupParticleVertexAttributeCommand()
109 u32 dimension = shape->GetVertexAttributeDimension(i); in SetupParticleVertexAttributeCommand()
114 u8* streamPtr = shape->GetVertexStreamPtr(i, bufferSide); in SetupParticleVertexAttributeCommand()
118 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex]); in SetupParticleVertexAttributeCommand()
145 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand()
147 if (!shape->IsVertexStream(i)) in SetupParticleVertexAttributeCommand()
149 s32 usage = shape->GetVertexAttributeUsage(i); in SetupParticleVertexAttributeCommand()
158 int count = shape->GetVertexAttributeDimension(i); in SetupParticleVertexAttributeCommand()
159 f32* fdata = shape->GetVertexParameter(i); in SetupParticleVertexAttributeCommand()
168 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex + 2]); in SetupParticleVertexAttributeCommand()
192 shape->m_CommandCacheSize[bufferSide] = commandIndex * sizeof(u32); in SetupParticleVertexAttributeCommand()
199 ParticleShape* shape) in SetupDeactivateParticleVertexAttributeCommand() argument
207 s32 vtxAttrNum = shape->GetVertexAttributesCount(); in SetupDeactivateParticleVertexAttributeCommand()
209 u32* command = reinterpret_cast<u32*>(shape->m_DeactivateVertexCommandCache); in SetupDeactivateParticleVertexAttributeCommand()
211 shape->m_DeactivateVertexCommandCache = command; in SetupDeactivateParticleVertexAttributeCommand()
219 if (shape->IsVertexStream(i)) in SetupDeactivateParticleVertexAttributeCommand()
243 shape->m_DeactivateVertexCommandCacheSize = commandIndex * sizeof(u32); in SetupDeactivateParticleVertexAttributeCommand()
245 … NW_ASSERT( shape->m_DeactivateVertexCommandCacheSize <= sizeof(u32) * (MAX_ATTRIBUTES_NUM * 8) ); in SetupDeactivateParticleVertexAttributeCommand()
253 ParticleShape* shape, in CreatePrimitiveCommandCache() argument
271 u32* command = reinterpret_cast<u32*>(shape->m_PrimitiveCommandCache); in CreatePrimitiveCommandCache()
337 shape->m_PrimitiveCommandCacheSize = commandIndex * sizeof(u32); in CreatePrimitiveCommandCache()