/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | device.cpp | 41 #include "device/swapchain.h" 475 void CreateDepthBuffer(const DeviceBackendType backendType, const Swapchain& swapchain, in CreateDepthBuffer() argument 479 PLUGIN_LOG_I("RENDER_VALIDATION: Default swapchain depth buffer created."); in CreateDepthBuffer() 482 DefaultEngineGpuResourceConstants::CORE_DEFAULT_BACKBUFFER_DEPTH, swapchain.GetDescDepthBuffer()); in CreateDepthBuffer() 528 PLUGIN_LOG_I("RENDER_VALIDATION: Replacing old swapchain handle %" PRIx64, printHandle.id); in CreateSwapchainImpl() 551 swapchainData.swapchain = CreateDeviceSwapchain(swapchainCreateInfo); in CreateSwapchainImpl() 552 if (!swapchainData.swapchain) { in CreateSwapchainImpl() 558 vector<unique_ptr<GpuImage>> swapchainGpuImages = CreateGpuImageViews(*swapchainData.swapchain); in CreateSwapchainImpl() 562 GpuImageDesc shallowDesc = swapchainData.swapchain->GetDesc(); in CreateSwapchainImpl() 569 to_hex(swapchainData.swapchain in CreateSwapchainImpl() [all...] |
H A D | device.h | 35 #include "device/swapchain.h" 113 // (re-)create swapchain 157 // get swapchain with shallow 182 BASE_NS::unique_ptr<Swapchain> swapchain; member 258 // multi-swapchain, the built-in default is only with swapchain_ and swapchainData_
|
/foundation/graphic/graphic_2d/frameworks/vulkan_layers/swapchain_layer/ |
H A D | swapchain_layer.cpp | 311 VkSwapchainKHR HandleFromSwapchain(Swapchain* swapchain) 313 return VkSwapchainKHR(reinterpret_cast<uint64_t>(swapchain)); 472 void ReleaseSwapchain(VkDevice device, Swapchain* swapchain) 475 if (swapchain->surface.swapchainHandle != HandleFromSwapchain(swapchain)) { 479 for (uint32_t i = 0; i < swapchain->numImages; i++) { 480 if (!swapchain->images[i].requested) { 481 ReleaseSwapchainImage(device, nullptr, -1, swapchain->images[i], true); 484 swapchain->surface.swapchainHandle = VK_NULL_HANDLE; 500 ("unsupported swapchain forma in GetPixelFormat() 820 CreateImages(uint32_t &numImages, Swapchain* swapchain, const VkSwapchainCreateInfoKHR* createInfo, VkImageCreateInfo &imageCreate, VkDevice device) CreateImages() argument 877 Swapchain* swapchain = SwapchainFromHandle(swapchainHandle); DestroySwapchainInternal() local 927 Swapchain* swapchain = new (mem) Swapchain(surface, numImages, createInfo->presentMode, transformType); CreateSwapchainKHR() local 964 const Swapchain &swapchain = *SwapchainFromHandle(vkSwapchain); GetSwapchainImagesKHR() local 987 Swapchain &swapchain = *SwapchainFromHandle(swapchainHandle); AcquireNextImageKHR() local 1144 FlushBuffer(const VkPresentRegionKHR* region, struct Region::Rect* rects, Swapchain &swapchain, Swapchain::Image &img, int32_t fence) FlushBuffer() argument 1221 Swapchain &swapchain = *(reinterpret_cast<Swapchain*>(presentInfo->pSwapchains[i])); QueuePresentKHR() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | egl_state.h | 50 void SetContext(const SwapchainGLES* swapchain); 62 void SwapBuffers(const SwapchainGLES& swapchain);
|
H A D | egl_state.cpp | 834 void EGLState::SetContext(const SwapchainGLES* swapchain) in SetContext() argument 836 if (swapchain == nullptr) { in SetContext() 840 const auto& plat = swapchain->GetPlatformData(); in SetContext() 1083 void EGLState::SwapBuffers(const SwapchainGLES& swapchain) in SwapBuffers() argument 1085 SetContext(&swapchain); in SwapBuffers() 1086 const auto& platSwapchain = static_cast<const SwapchainPlatformDataGL&>(swapchain.GetPlatformData()); in SwapBuffers()
|
H A D | device_gles.cpp | 1027 void DeviceGLES::Activate(RenderHandle swapchain) in Activate() argument 1030 eglState_.SetContext(static_cast<const SwapchainGLES*>(GetSwapchain(swapchain))); in Activate() 1032 // bind the dummy surface as there is no swapchain. in Activate() 1037 void DeviceGLES::SwapBuffers(const SwapchainGLES& swapchain) in SwapBuffers() argument 1039 eglState_.SwapBuffers(swapchain); in SwapBuffers() 1224 // (re-)create swapchain 1228 auto swapchain = make_unique<SwapchainGLES>(*this, swapchainCreateInfo); 1229 // Switch to the new swapchain. 1230 eglState_.SetContext(swapchain.get()); 1231 return swapchain; [all...] |
H A D | device_gles.h | 110 // (re-)create swapchain 173 void Activate(RenderHandle swapchain);
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | swapchain_vk.h | 26 #include "device/swapchain.h" 43 VkSwapchainKHR swapchain { VK_NULL_HANDLE };
|
H A D | swapchain_vk.cpp | 103 // Pick a color format for the swapchain. in GetColorInfo() 130 // Pick a present mode for the swapchain. in GetPresentMode() 159 PLUGIN_LOG_I("Available swapchain present modes:"); in GetPresentMode() 165 PLUGIN_LOG_I("Selected swapchain present modes:"); in GetPresentMode() 186 "zero sized swapchain cannot be created in vulkan (width: %u, height: %u)", extent.width, extent.height); in ClampSwapchainExtent() 187 PLUGIN_LOG_E("using 1x1 swapchain"); in ClampSwapchainExtent() 270 // Pick an extent, image count, and transform for the swapchain. in SwapchainVk() 275 // swapchain? in SwapchainVk() 297 PLUGIN_LOG_D("swapchain usage flags, selected: %u, desired: %u, capabilities: %u", imageUsageFlags, in SwapchainVk() 326 VALIDATE_VK_RESULT(vkCreateSwapchainKHR(vkDevice, &vkSwapchainCreateInfo, nullptr, &plat_.swapchain)); in SwapchainVk() [all...] |
H A D | create_functions_vk.h | 95 static void DestroySwapchain(VkDevice device, VkSwapchainKHR swapchain);
|
H A D | create_functions_vk.cpp | 630 void CreateFunctionsVk::DestroySwapchain(VkDevice device, VkSwapchainKHR swapchain) 632 if (device && swapchain) { 633 vkDestroySwapchainKHR(device, swapchain, nullptr);
|
H A D | render_backend_vk.cpp | 183 if (const SwapchainVk* swapchain = static_cast<const SwapchainVk*>(device_.GetSwapchain(swapData.handle)); in AcquirePresentationInfo() 184 swapchain) { in AcquirePresentationInfo() 185 const SwapchainPlatformDataVk& platSwapchain = swapchain->GetPlatformData(); in AcquirePresentationInfo() 186 const VkSwapchainKHR vkSwapchain = platSwapchain.swapchain; in AcquirePresentationInfo() 187 const uint32_t semaphoreIdx = swapchain->GetNextAcquireSwapchainSemaphoreIndex(); in AcquirePresentationInfo() 190 pi.swapchain = platSwapchain.swapchain; in AcquirePresentationInfo() 192 // NOTE: for legacy default backbuffer reasons there might the same swapchain multiple times ATM in AcquirePresentationInfo() 194 if (piRef.swapchain == pi.swapchain) { in AcquirePresentationInfo() [all...] |
H A D | device_vk.h | 184 bool swapchain { false };
|
H A D | device_vk.cpp | 497 extensions.swapchain = enabledDeviceExtensions.contains(DEVICE_EXTENSION_SWAPCHAIN); in GetEnabledCommonDeviceExtensions() 1241 vector<unique_ptr<GpuImage>> DeviceVk::CreateGpuImageViews(const Swapchain& swapchain) in CreateGpuImageViews() argument 1243 const GpuImageDesc& desc = swapchain.GetDesc(); in CreateGpuImageViews() 1244 const auto& swapchainPlat = static_cast<const SwapchainVk&>(swapchain).GetPlatformData(); in CreateGpuImageViews()
|
H A D | render_backend_vk.h | 146 // called once in the beginning of rendering to acquire and setup possible swapchain 262 VkSwapchainKHR swapchain { VK_NULL_HANDLE };
|
/foundation/graphic/graphic_3d/3d_scene_adapter/include/scene_adapter/ |
H A D | scene_adapter.h | 80 void AttachSwapchain(META_NS::IObject::Ptr camera, RENDER_NS::RenderHandleReference swapchain);
|
/foundation/graphic/graphic_3d/3d_scene_adapter/src/ |
H A D | scene_adapter.cpp | 455 void SceneAdapter::AttachSwapchain(META_NS::IObject::Ptr cameraObj, RENDER_NS::RenderHandleReference swapchain) in AttachSwapchain() argument 457 WIDGET_LOGD("attach swapchain"); in AttachSwapchain()
|
/foundation/graphic/graphic_2d/frameworks/vulkan_layers/test/unittest/ |
H A D | vulkan_loader_unit_test.cpp | 866 EXPECT_EQ((debugMessage_.str().find("unsupported swapchain format") != -1), true); in HWTEST_F() 989 pAcquireInfo.swapchain = swapChain2_; in HWTEST_F()
|