Lines Matching refs:texture
49 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResImageTexture texture);
50 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResCubeTexture texture);
51 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResShadowTexture texture);
563 ResReferenceTextureData* texture = new(textureMemory) ResReferenceTextureData(); in ReferResTexture() local
564 texture->typeInfo = ResReferenceTexture::TYPE_INFO; in ReferResTexture()
565 texture->toName.set_ptr(NULL); in ReferResTexture()
566 texture->toPath.set_ptr(NULL); in ReferResTexture()
567 texture->toTargetTexture.set_ptr(NULL); in ReferResTexture()
573 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
578 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
584 texture->toTargetTexture.set_ptr(referenceTexture.GetTargetTexture().ptr()); in ReferResTexture()
589 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
598 return ResTexture(texture); in ReferResTexture()
696 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResImageTexture texture) in SetupTextureMapperCommand() argument
709 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
710 ResPixelBasedImage resImage = texture.GetImage(); in SetupTextureMapperCommand()
713 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
722 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
723 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
730 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
743 VerifyCubeTextureAddress_( ResCubeTexture texture ) in VerifyCubeTextureAddress_() argument
746 uint texId = texture.GetTextureObject(); in VerifyCubeTextureAddress_()
750 … ResPixelBasedImage resImage = texture.GetImage( static_cast<ResCubeTexture::CubeFace>( face ) ); in VerifyCubeTextureAddress_()
782 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResCubeTexture texture) in SetupTextureMapperCommand() argument
787 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
789 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
808 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
809 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
816 NW_ASSERT( VerifyCubeTextureAddress_( texture ) ); in SetupTextureMapperCommand()
818 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
822 … ResPixelBasedImage resImage = texture.GetImage( static_cast<ResCubeTexture::CubeFace>( face ) ); in SetupTextureMapperCommand()
843 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResShadowTexture texture) in SetupTextureMapperCommand() argument
857 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
858 ResPixelBasedImage resImage = texture.GetImage(); in SetupTextureMapperCommand()
861 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
869 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
870 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
874 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
878 command[13] |= ((texture.IsPerspectiveShadow() ? 0 : 1) & 0x1) << 0; in SetupTextureMapperCommand()
879 … command[13] |= ((ut::FixedU24::Float32ToFixedU24(texture.GetShadowZBias()) >> 1) & 0x7FFFFF) << 1; in SetupTextureMapperCommand()
881 u32 scaleU32 = ((ut::Float32::Float32ToBits32(texture.GetShadowZScale()) >> 23) & 0xFF); in SetupTextureMapperCommand()