Lines Matching refs:shape

40     ParticleShape* shape,  in SetupParticleVertexAttributeCommand()  argument
61 s32 vtxAttrNum = shape->GetVertexAttributesCount(); in SetupParticleVertexAttributeCommand()
63 u32* command = reinterpret_cast<u32*>(shape->m_CommandCache[bufferSide]); in SetupParticleVertexAttributeCommand()
97 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand()
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()
143 for (s32 i = 0; i < shape->GetVertexAttributesCount(); ++i) in SetupParticleVertexAttributeCommand()
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()
190 shape->m_CommandCacheSize[bufferSide] = commandIndex * sizeof(u32); in SetupParticleVertexAttributeCommand()
197 ParticleShape* shape) in SetupDeactivateParticleVertexAttributeCommand() argument
205 s32 vtxAttrNum = shape->GetVertexAttributesCount(); in SetupDeactivateParticleVertexAttributeCommand()
207 u32* command = reinterpret_cast<u32*>(shape->m_DeactivateVertexCommandCache); in SetupDeactivateParticleVertexAttributeCommand()
209 shape->m_DeactivateVertexCommandCache = command; in SetupDeactivateParticleVertexAttributeCommand()
217 if (shape->IsVertexStream(i)) in SetupDeactivateParticleVertexAttributeCommand()
241 shape->m_DeactivateVertexCommandCacheSize = commandIndex * sizeof(u32); in SetupDeactivateParticleVertexAttributeCommand()
243 … NW_ASSERT( shape->m_DeactivateVertexCommandCacheSize <= sizeof(u32) * (MAX_ATTRIBUTES_NUM * 8) ); in SetupDeactivateParticleVertexAttributeCommand()
251 ParticleShape* shape, in CreatePrimitiveCommandCache() argument
269 u32* command = reinterpret_cast<u32*>(shape->m_PrimitiveCommandCache); in CreatePrimitiveCommandCache()
335 shape->m_PrimitiveCommandCacheSize = commandIndex * sizeof(u32); in CreatePrimitiveCommandCache()