Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/vulkan/vk_backend.cc
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2022 Blender Foundation. All rights reserved. */ | * Copyright 2022 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| */ | */ | ||||
| #include "vk_backend.hh" | #include "gpu_platform_private.hh" | ||||
| #include "vk_batch.hh" | #include "vk_batch.hh" | ||||
| #include "vk_context.hh" | #include "vk_context.hh" | ||||
| #include "vk_drawlist.hh" | #include "vk_drawlist.hh" | ||||
| #include "vk_framebuffer.hh" | #include "vk_framebuffer.hh" | ||||
| #include "vk_index_buffer.hh" | #include "vk_index_buffer.hh" | ||||
| #include "vk_query.hh" | #include "vk_query.hh" | ||||
| #include "vk_shader.hh" | #include "vk_shader.hh" | ||||
| #include "vk_storage_buffer.hh" | #include "vk_storage_buffer.hh" | ||||
| #include "vk_texture.hh" | #include "vk_texture.hh" | ||||
| #include "vk_uniform_buffer.hh" | #include "vk_uniform_buffer.hh" | ||||
| #include "vk_vertex_buffer.hh" | #include "vk_vertex_buffer.hh" | ||||
| #include "vk_backend.hh" | |||||
| namespace blender::gpu { | namespace blender::gpu { | ||||
| void VKBackend::init_platform() | |||||
| { | |||||
| BLI_assert(!GPG.initialized); | |||||
| eGPUDeviceType device = GPU_DEVICE_ANY; | |||||
| eGPUOSType os = GPU_OS_ANY; | |||||
| eGPUDriverType driver = GPU_DRIVER_ANY; | |||||
| eGPUSupportLevel support_level = GPU_SUPPORT_LEVEL_SUPPORTED; | |||||
| #ifdef _WIN32 | |||||
| os = GPU_OS_WIN; | |||||
| #elif defined(__APPLE__) | |||||
| os = GPU_OS_MAC; | |||||
| #else | |||||
| os = GPU_OS_UNIX; | |||||
| #endif | |||||
| GPG.init(device, os, driver, support_level, GPU_BACKEND_VULKAN, "", "", ""); | |||||
| } | |||||
| void VKBackend::platform_exit() | |||||
| { | |||||
| BLI_assert(GPG.initialized); | |||||
| GPG.clear(); | |||||
| } | |||||
| void VKBackend::delete_resources() | void VKBackend::delete_resources() | ||||
| { | { | ||||
| } | } | ||||
| void VKBackend::samplers_update() | void VKBackend::samplers_update() | ||||
| { | { | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| } | } | ||||
| void VKBackend::render_step() | void VKBackend::render_step() | ||||
| { | { | ||||
| } | } | ||||
| } // namespace blender::gpu | } // namespace blender::gpu | ||||
| No newline at end of file | No newline at end of file | ||||