Lines Matching refs:u32
53 static NW_INLINE u32 MultU32Color(u32 lhs, u32 rhs) in MultU32Color()
55 const u32 MASKx2 = (0xff << 1); in MultU32Color()
57 u32 r = ((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10; in MultU32Color()
58 u32 g = ((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10; in MultU32Color()
59 u32 b = ((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10; in MultU32Color()
73 static NW_INLINE u32 MultAddU32Color(u32 lhs, u32 rhs, u32 add) in MultAddU32Color()
75 const u32 MASK = 0xff; in MultAddU32Color()
76 const u32 MASKx2 = (0xff << 1); in MultAddU32Color()
78 … u32 r = (((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10) + (add & MASK); in MultAddU32Color()
79 …u32 g = (((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10) + ((add >> 8) & MASK… in MultAddU32Color()
80 …u32 b = (((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10) + ((add >> 16) & MAS… in MultAddU32Color()
82 …return (ut::Clamp<u32>(r, 0, 255) << 20) | (ut::Clamp<u32>(g, 0, 255) << 10) | ut::Clamp<u32>(b, 0… in MultAddU32Color()
93 static NW_INLINE u32 GetVertexFormat(s32 dimension, GLuint format) in GetVertexFormat()
95 u32 result = 0; in GetVertexFormat()
117 static NW_INLINE u32 GetVertexSize(s32 dimension, GLuint format) in GetVertexSize()
119 u32 result = 0; in GetVertexSize()
150 … const u32 COUNT_HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_COUNT, 1, false, 0x1); in ActivateFragmentLightCount()
151 … const u32 LIGHT_MASK_HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_MASK, 1, false, 0xF); in ActivateFragmentLightCount()
153 u32 LIGHT_COUNT_COMMAND[] = in ActivateFragmentLightCount()
188 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_COLOR_BASE, 4, true, 0xF); in ActivateFragmentLight()
194 …u32 specular0U32 = CommandCacheHelper::MultU32Color(resLight.GetSpecular0U32(), materialColor.Get… in ActivateFragmentLight()
195 …u32 diffuseU32 = CommandCacheHelper::MultU32Color(resLight.GetDiffuseU32(), materialColor.GetDi… in ActivateFragmentLight()
196 …u32 ambientU32 = CommandCacheHelper::MultU32Color(resLight.GetAmbientU32(), materialColor.GetAm… in ActivateFragmentLight()
197 u32 specular1U32 = resLight.GetSpecular1U32(); in ActivateFragmentLight()
201 const u32 MASK = 0xff; in ActivateFragmentLight()
205 … specular1U32 = (static_cast<u32>(r) << 20) | (static_cast<u32>(g) << 10) | (static_cast<u32>(b)); in ActivateFragmentLight()
212 u32 LIGHT_COMMAND[6] = in ActivateFragmentLight()
236 u32 ambientU32 = 0x0; in ActivateFragmentAmbientLight()
237 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_COLOR_AMBIENT, 1, false, 0xF); in ActivateFragmentAmbientLight()
246 u32 emissionU32 = materialColor.GetEmissionU32(); in ActivateFragmentAmbientLight()
247 const u32 MASK = 0xff; in ActivateFragmentAmbientLight()
251 … ambientU32 = (static_cast<u32>(r) << 20) | (static_cast<u32>(g) << 10) | (static_cast<u32>(b)); in ActivateFragmentAmbientLight()
254 u32 LIGHT_COMMAND[2] = in ActivateFragmentAmbientLight()
280 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_TYPE, 1, false, 0x1); in ActivateFragmentLightParameters()
282 u32 LIGHT_COMMAND[2] = in ActivateFragmentLightParameters()
319 const u32 REG_LIGHT_ENV = 0x1c3; in ActivateFragmentLighting()
320 const u32 REG_LIGHT_ENV2 = 0x1c4; in ActivateFragmentLighting()
322 const u32 HEADER = internal::MakeCommandHeader(REG_LIGHT_ENV, 1, false, 0xf); in ActivateFragmentLighting()
323 const u32 HEADER2 = internal::MakeCommandHeader(REG_LIGHT_ENV2, 1, false, 0x4); in ActivateFragmentLighting()
325 u32 LIGHT_COMMAND[4] = in ActivateFragmentLighting()
352 u32 layerConfig = fragmentLighting.GetLayerConfig(); in ActivateFragmentLighting()
353 u32 fresnelSelector = fragmentLighting.GetFresnelConfig(); in ActivateFragmentLighting()
354 u32 bumpSelector = fragmentLighting.GetBumpTextureIndex(); in ActivateFragmentLighting()
355 u32 bumpMode = fragmentLighting.GetBumpMode(); in ActivateFragmentLighting()