Searched refs:gpuDesc (Results 1 – 2 of 2) sorted by relevance
1004 …GpuImageDesc gpuDesc = gpuResourceMgr.CreateGpuImageDesc(data->imageLoadResult_.image->GetImageDes… in CreateImage() local1005 gpuDesc.usageFlags = CORE_IMAGE_USAGE_SAMPLED_BIT | CORE_IMAGE_USAGE_TRANSFER_DST_BIT; in CreateImage()1006 …if (gpuDesc.engineCreationFlags & EngineImageCreationFlagBits::CORE_ENGINE_IMAGE_CREATION_GENERATE… in CreateImage()1007 gpuDesc.usageFlags |= CORE_IMAGE_USAGE_TRANSFER_SRC_BIT; in CreateImage()1009 gpuDesc.memoryPropertyFlags = CORE_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; in CreateImage()1010 …data->imageHandle_ = gpuResourceMgr.Create(data->uri_, gpuDesc, std::move(data->imageLoadResult_.i… in CreateImage()1013 data->bitmap_->SetRenderHandle(data->imageHandle_, { gpuDesc.width, gpuDesc.height }); in CreateImage()
1219 … GpuImageDesc gpuDesc = gpuResourceMgr.CreateGpuImageDesc(imageLoadResult.image->GetImageDesc()); in LoadImageResource() local1220 gpuDesc.usageFlags = CORE_IMAGE_USAGE_SAMPLED_BIT | CORE_IMAGE_USAGE_TRANSFER_DST_BIT; in LoadImageResource()1221 …if (gpuDesc.engineCreationFlags & EngineImageCreationFlagBits::CORE_ENGINE_IMAGE_CREATION_GENERATE… in LoadImageResource()1222 gpuDesc.usageFlags |= CORE_IMAGE_USAGE_TRANSFER_SRC_BIT; in LoadImageResource()1224 gpuDesc.memoryPropertyFlags = CORE_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; in LoadImageResource()1226 imageHandle = gpuResourceMgr.Create(uri, gpuDesc, std::move(imageLoadResult.image)); in LoadImageResource()