Home
last modified time | relevance | path

Searched refs:commandIndex (Results 1 – 5 of 5) sorted by relevance

/NW4C-1.3.3/sources/libraries/gfx/
Dgfx_ActivateCommand.cpp200 s32 commandIndex = 0; in CalcSetupDeactivateVertexAttributeCommandSize_() local
225 commandIndex += 2; in CalcSetupDeactivateVertexAttributeCommandSize_()
228 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
233 commandIndex += 6; in CalcSetupDeactivateVertexAttributeCommandSize_()
236 return sizeof(u32) * commandIndex; in CalcSetupDeactivateVertexAttributeCommandSize_()
324 u32 commandIndex = 12; in SetupActivateVertexAttributeCommand_() local
352 command[commandIndex ] = bufferAddr - baseAddr; in SetupActivateVertexAttributeCommand_()
353 …command[commandIndex + 1] = internal::MakeCommandHeader(REG_VTX_ARRAY_OFFSET + 3 * arrayIndex, 3, … in SetupActivateVertexAttributeCommand_()
354 command[commandIndex + 2] = 0; in SetupActivateVertexAttributeCommand_()
355 command[commandIndex + 3] = (interleave.GetStride() << 16) | (streamCount << 28); in SetupActivateVertexAttributeCommand_()
[all …]
Dgfx_MeshRenderer.cpp292 int commandIndex = 0; in RenderParticleShape() local
294 command[commandIndex++] = 0x80000000 | VERTEX_SHADER_UNIFORM_POSOFFS_INDEX; in RenderParticleShape()
295 … command[commandIndex++] = internal::MakeCommandHeader(REG_UNIFORM_FLOAT_INDEX, 1 + 4, true, 0xF); in RenderParticleShape()
296 command[commandIndex++] = 0; in RenderParticleShape()
297 command[commandIndex++] = *(u32*)&resource.GetPositionOffset().z; in RenderParticleShape()
298 command[commandIndex++] = *(u32*)&resource.GetPositionOffset().y; in RenderParticleShape()
299 command[commandIndex++] = *(u32*)&resource.GetPositionOffset().x; in RenderParticleShape()
308 command[commandIndex++] = 0x80000000 | VERTEX_SHADER_UNIFORM_UNIVREG_INDEX; in RenderParticleShape()
309 command[commandIndex++] = HEADER_UNIFORM_FLOAT_INDEX; in RenderParticleShape()
320 (f32*)&command[commandIndex], in RenderParticleShape()
[all …]
Dgfx_ParticleShape.cpp92 u32 commandIndex = 12; in SetupParticleVertexAttributeCommand() local
116 shape->SetVertexAttributeCommandPtr(i, bufferSide, &command[commandIndex]); in SetupParticleVertexAttributeCommand()
120 command[commandIndex++] = bufferAddr - baseAddr; in SetupParticleVertexAttributeCommand()
121 command[commandIndex++] = inputIndex; in SetupParticleVertexAttributeCommand()
122 …command[commandIndex++] = (internal::CommandCacheHelper::GetVertexSize(dimension, format) << 16) +… in SetupParticleVertexAttributeCommand()
131 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
132 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
133 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
137 if ((commandIndex & 1) == 1) in SetupParticleVertexAttributeCommand()
139 command[commandIndex++] = 0; in SetupParticleVertexAttributeCommand()
[all …]
Dgfx_Fog.cpp371 u32 commandIndex = (index == 0) ? 2 : index + 3; in SetupFogSampler() local
373 fogSampler.SetCommandCache(commandIndex, value ); in SetupFogSampler()
/NW4C-1.3.3/sources/libraries/gfx/res/
Dgfx_ResMesh.cpp106 s32 commandIndex = QueryScaleCommandIndex( usage ); in ResSeparateDataShape_SetupVertexIrScale() local
107 … if ( commandIndex >= 0 ) { command[ commandIndex ] = ut::Float32::Float32ToBits32(1.0f); } in ResSeparateDataShape_SetupVertexIrScale()
117 s32 commandIndex = QueryScaleCommandIndex( usage ); in ResSeparateDataShape_SetupVertexIrScale() local
118 … if ( commandIndex >= 0 ) { command[ commandIndex ] = ut::Float32::Float32ToBits32(scale); } in ResSeparateDataShape_SetupVertexIrScale()
119 NW_ASSERT( ! ( (commandIndex == BONE_INDEX_SCALE_INDEX) && (scale != 1.0f)) ); in ResSeparateDataShape_SetupVertexIrScale()