Lines Matching refs:u32

51     static NW_INLINE u32 MultU32Color(u32 lhs, u32 rhs)  in MultU32Color()
53 const u32 MASKx2 = (0xff << 1); in MultU32Color()
55 u32 r = ((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10; in MultU32Color()
56 u32 g = ((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10; in MultU32Color()
57 u32 b = ((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10; in MultU32Color()
71 static NW_INLINE u32 MultAddU32Color(u32 lhs, u32 rhs, u32 add) in MultAddU32Color()
73 const u32 MASK = 0xff; in MultAddU32Color()
74 const u32 MASKx2 = (0xff << 1); in MultAddU32Color()
76u32 r = (((((lhs << 1) & MASKx2) + 1) * (((rhs << 1) & MASKx2) + 1)) >> 10) + (add & MASK); in MultAddU32Color()
77u32 g = (((((lhs >> 7) & MASKx2) + 1) * (((rhs >> 7) & MASKx2) + 1)) >> 10) + ((add >> 8) & MASK… in MultAddU32Color()
78u32 b = (((((lhs >> 15) & MASKx2) + 1) * (((rhs >> 15) & MASKx2) + 1)) >> 10) + ((add >> 16) & MAS… in MultAddU32Color()
80 …return (ut::Clamp<u32>(r, 0, 255) << 20) | (ut::Clamp<u32>(g, 0, 255) << 10) | ut::Clamp<u32>(b, 0… in MultAddU32Color()
91 static NW_INLINE u32 GetVertexFormat(s32 dimension, GLuint format) in GetVertexFormat()
93 u32 result = 0; in GetVertexFormat()
115 static NW_INLINE u32 GetVertexSize(s32 dimension, GLuint format) in GetVertexSize()
117 u32 result = 0; in GetVertexSize()
148 … const u32 COUNT_HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_COUNT, 1, false, 0x1); in ActivateFragmentLightCount()
149 … const u32 LIGHT_MASK_HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_MASK, 1, false, 0xF); in ActivateFragmentLightCount()
151 u32 LIGHT_COUNT_COMMAND[] = in ActivateFragmentLightCount()
186 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_COLOR_BASE, 4, true, 0xF); in ActivateFragmentLight()
192u32 specular0U32 = CommandCacheHelper::MultU32Color(resLight.GetSpecular0U32(), materialColor.Get… in ActivateFragmentLight()
193u32 diffuseU32 = CommandCacheHelper::MultU32Color(resLight.GetDiffuseU32(), materialColor.GetDi… in ActivateFragmentLight()
194u32 ambientU32 = CommandCacheHelper::MultU32Color(resLight.GetAmbientU32(), materialColor.GetAm… in ActivateFragmentLight()
195 u32 specular1U32 = resLight.GetSpecular1U32(); in ActivateFragmentLight()
199 const u32 MASK = 0xff; in ActivateFragmentLight()
203 … specular1U32 = (static_cast<u32>(r) << 20) | (static_cast<u32>(g) << 10) | (static_cast<u32>(b)); in ActivateFragmentLight()
210 u32 LIGHT_COMMAND[6] = in ActivateFragmentLight()
234 u32 ambientU32 = 0x0; in ActivateFragmentAmbientLight()
235 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_COLOR_AMBIENT, 1, false, 0xF); in ActivateFragmentAmbientLight()
244 u32 emissionU32 = materialColor.GetEmissionU32(); in ActivateFragmentAmbientLight()
245 const u32 MASK = 0xff; in ActivateFragmentAmbientLight()
249 … ambientU32 = (static_cast<u32>(r) << 20) | (static_cast<u32>(g) << 10) | (static_cast<u32>(b)); in ActivateFragmentAmbientLight()
252 u32 LIGHT_COMMAND[2] = in ActivateFragmentAmbientLight()
278 const u32 HEADER = internal::MakeCommandHeader(REG_FRAGMENT_LIGHT_TYPE, 1, false, 0x1); in ActivateFragmentLightParameters()
280 u32 LIGHT_COMMAND[2] = in ActivateFragmentLightParameters()
317 const u32 REG_LIGHT_ENV = 0x1c3; in ActivateFragmentLighting()
318 const u32 REG_LIGHT_ENV2 = 0x1c4; in ActivateFragmentLighting()
320 const u32 HEADER = internal::MakeCommandHeader(REG_LIGHT_ENV, 1, false, 0xf); in ActivateFragmentLighting()
321 const u32 HEADER2 = internal::MakeCommandHeader(REG_LIGHT_ENV2, 1, false, 0x4); in ActivateFragmentLighting()
323 u32 LIGHT_COMMAND[4] = in ActivateFragmentLighting()
350 u32 layerConfig = fragmentLighting.GetLayerConfig(); in ActivateFragmentLighting()
351 u32 fresnelSelector = fragmentLighting.GetFresnelConfig(); in ActivateFragmentLighting()
352 u32 bumpSelector = fragmentLighting.GetBumpTextureIndex(); in ActivateFragmentLighting()
353 u32 bumpMode = fragmentLighting.GetBumpMode(); in ActivateFragmentLighting()