Skip to content

Commit

Permalink
Use shared-assets-wip branch of cesium-native.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 28, 2024
1 parent 85d6b39 commit d8f27c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ void ACesium3DTileset::updateLastViewUpdateResultState(
}

if (this->LogAssetStats && this->_pTileset) {
const CesiumAsync::SharedAssetDepot<CesiumGltf::ImageAsset>& imageDepot =
const CesiumGltfReader::NetworkImageAssetDepot& imageDepot =
*this->_pTileset->getSharedAssetSystem().pImage;
UE_LOG(
LogCesium,
Expand Down
10 changes: 5 additions & 5 deletions Source/CesiumRuntime/Private/CesiumTextureResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ void FCesiumTextureResourceDeleter::operator()(FCesiumTextureResource* p) {

FTexture2DRHIRef textureReference =
CreateRHITexture2D_Async(imageCesium, *maybePixelFormat, sRGB);
textureReference->SetName(
FName(UTF8_TO_TCHAR(imageCesium.getUniqueAssetId().c_str())));
// textureReference->SetName(
// FName(UTF8_TO_TCHAR(imageCesium.getUniqueAssetId().c_str())));
auto pResult = TUniquePtr<
FCesiumUseExistingTextureResource,
FCesiumTextureResourceDeleter>(new FCesiumUseExistingTextureResource(
Expand Down Expand Up @@ -670,9 +670,9 @@ FTextureRHIRef FCesiumCreateNewTextureResource::InitializeTextureRHI() {
// Use the asset ID as the name of the texture so it will be visible in the
// Render Resource Viewer.
FString debugName = TEXT("CesiumTextureUtility");
if (!this->_image.getUniqueAssetId().empty()) {
debugName = UTF8_TO_TCHAR(this->_image.getUniqueAssetId().c_str());
}
// if (!this->_image.getUniqueAssetId().empty()) {
// debugName = UTF8_TO_TCHAR(this->_image.getUniqueAssetId().c_str());
// }

FRHIResourceCreateInfo createInfo{*debugName};
createInfo.BulkData = nullptr;
Expand Down

0 comments on commit d8f27c6

Please sign in to comment.