Lines Matching refs:texture
51 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResImageTexture texture);
52 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResCubeTexture texture);
53 static void SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResShadowTexture texture);
96 ResTexture texture = textureMapper.GetTexture(); in SetTextureMipmapCommand() local
101 if (texture.IsValid() && in SetTextureMipmapCommand()
106 ResStaticCast<ResPixelBasedTexture>(texture.Dereference()); in SetTextureMipmapCommand()
560 ResReferenceTextureData* texture = new(textureMemory) ResReferenceTextureData(); in ReferResTexture() local
561 texture->typeInfo = ResReferenceTexture::TYPE_INFO; in ReferResTexture()
562 texture->toName.set_ptr(NULL); in ReferResTexture()
563 texture->toPath.set_ptr(NULL); in ReferResTexture()
564 texture->toTargetTexture.set_ptr(NULL); in ReferResTexture()
570 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
575 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
581 texture->toTargetTexture.set_ptr(referenceTexture.GetTargetTexture().ptr()); in ReferResTexture()
586 texture->toTargetTexture.set_ptr(resTexture.ptr()); in ReferResTexture()
595 return ResTexture(texture); in ReferResTexture()
693 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResImageTexture texture) in SetupTextureMapperCommand() argument
706 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
707 ResPixelBasedImage resImage = texture.GetImage(); in SetupTextureMapperCommand()
710 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
719 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
720 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
732 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
746 VerifyCubeTextureAddress_( ResCubeTexture texture ) in VerifyCubeTextureAddress_() argument
749 uint texId = texture.GetTextureObject(); in VerifyCubeTextureAddress_()
753 … ResPixelBasedImage resImage = texture.GetImage( static_cast<ResCubeTexture::CubeFace>( face ) ); in VerifyCubeTextureAddress_()
785 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResCubeTexture texture) in SetupTextureMapperCommand() argument
790 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
792 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
811 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
812 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
819 NW_ASSERT( VerifyCubeTextureAddress_( texture ) ); in SetupTextureMapperCommand()
826 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
831 … ResPixelBasedImage resImage = texture.GetImage( static_cast<ResCubeTexture::CubeFace>( face ) ); in SetupTextureMapperCommand()
852 SetupTextureMapperCommand(ResPixelBasedTextureMapper mapper, ResShadowTexture texture) in SetupTextureMapperCommand() argument
866 uint texId = texture.GetTextureObject(); in SetupTextureMapperCommand()
867 ResPixelBasedImage resImage = texture.GetImage(); in SetupTextureMapperCommand()
870 uint format = texture.GetFormatHW(); in SetupTextureMapperCommand()
878 command[4] |= (texture.GetHeight() & 0x7FF) << 0; in SetupTextureMapperCommand()
879 command[4] |= (texture.GetWidth() & 0x7FF) << WIDTH_SHIFT; in SetupTextureMapperCommand()
888 command[6] |= ((texture.GetMipmapSize() - 1) & 0xF) << MIPMAP_SIZE_SHIFT; in SetupTextureMapperCommand()
893 command[13] |= ((texture.IsPerspectiveShadow() ? 0 : 1) & 0x1) << 0; in SetupTextureMapperCommand()
894 … command[13] |= ((ut::FixedU24::Float32ToFixedU24(texture.GetShadowZBias()) >> 1) & 0x7FFFFF) << 1; in SetupTextureMapperCommand()
896 u32 scaleU32 = ((ut::Float32::Float32ToBits32(texture.GetShadowZScale()) >> 23) & 0xFF); in SetupTextureMapperCommand()
901 void ResPixelBasedTextureMapper::ForceSetupTexture(ResTexture texture) in ForceSetupTexture() argument
903 NW_ASSERT(texture.IsValid()); in ForceSetupTexture()
905 refer.ref().toTargetTexture.set_ptr(texture.ptr()); in ForceSetupTexture()