Home
last modified time | relevance | path

Searched refs:swapchain (Results 1 - 18 of 18) sorted by relevance

/foundation/graphic/graphic_3d/lume/LumeRender/src/device/
H A Ddevice.cpp41 #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 Ddevice.h35 #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 Dswapchain_layer.cpp311 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 Degl_state.h50 void SetContext(const SwapchainGLES* swapchain);
62 void SwapBuffers(const SwapchainGLES& swapchain);
H A Degl_state.cpp834 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 Ddevice_gles.cpp1027 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 Ddevice_gles.h110 // (re-)create swapchain
173 void Activate(RenderHandle swapchain);
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dswapchain_vk.h26 #include "device/swapchain.h"
43 VkSwapchainKHR swapchain { VK_NULL_HANDLE };
H A Dswapchain_vk.cpp103 // 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 Dcreate_functions_vk.h95 static void DestroySwapchain(VkDevice device, VkSwapchainKHR swapchain);
H A Dcreate_functions_vk.cpp630 void CreateFunctionsVk::DestroySwapchain(VkDevice device, VkSwapchainKHR swapchain)
632 if (device && swapchain) {
633 vkDestroySwapchainKHR(device, swapchain, nullptr);
H A Drender_backend_vk.cpp183 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 Ddevice_vk.h184 bool swapchain { false };
H A Ddevice_vk.cpp497 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 Drender_backend_vk.h146 // 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 Dscene_adapter.h80 void AttachSwapchain(META_NS::IObject::Ptr camera, RENDER_NS::RenderHandleReference swapchain);
/foundation/graphic/graphic_3d/3d_scene_adapter/src/
H A Dscene_adapter.cpp455 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 Dvulkan_loader_unit_test.cpp866 EXPECT_EQ((debugMessage_.str().find("unsupported swapchain format") != -1), true); in HWTEST_F()
989 pAcquireInfo.swapchain = swapChain2_; in HWTEST_F()

Completed in 24 milliseconds