Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
38e789c7
There was an error fetching the commit references. Please try again later.
Commit
38e789c7
authored
5 years ago
by
ReinUsesLisp
Browse files
Options
Downloads
Patches
Plain Diff
renderer_vulkan: Add header as placeholder
parent
e041f335
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/video_core/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/video_core/CMakeLists.txt
src/video_core/renderer_vulkan/renderer_vulkan.h
+72
-0
72 additions, 0 deletions
src/video_core/renderer_vulkan/renderer_vulkan.h
with
73 additions
and
0 deletions
src/video_core/CMakeLists.txt
+
1
−
0
View file @
38e789c7
...
...
@@ -153,6 +153,7 @@ if (ENABLE_VULKAN)
renderer_vulkan/fixed_pipeline_state.h
renderer_vulkan/maxwell_to_vk.cpp
renderer_vulkan/maxwell_to_vk.h
renderer_vulkan/renderer_vulkan.h
renderer_vulkan/vk_buffer_cache.cpp
renderer_vulkan/vk_buffer_cache.h
renderer_vulkan/vk_compute_pass.cpp
...
...
This diff is collapsed.
Click to expand it.
src/video_core/renderer_vulkan/renderer_vulkan.h
0 → 100644
+
72
−
0
View file @
38e789c7
// Copyright 2018 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include
<optional>
#include
<vector>
#include
"video_core/renderer_base.h"
#include
"video_core/renderer_vulkan/declarations.h"
namespace
Core
{
class
System
;
}
namespace
Vulkan
{
class
VKBlitScreen
;
class
VKDevice
;
class
VKFence
;
class
VKMemoryManager
;
class
VKResourceManager
;
class
VKSwapchain
;
class
VKScheduler
;
class
VKImage
;
struct
VKScreenInfo
{
VKImage
*
image
{};
u32
width
{};
u32
height
{};
bool
is_srgb
{};
};
class
RendererVulkan
final
:
public
VideoCore
::
RendererBase
{
public:
explicit
RendererVulkan
(
Core
::
Frontend
::
EmuWindow
&
window
,
Core
::
System
&
system
);
~
RendererVulkan
()
override
;
/// Swap buffers (render frame)
void
SwapBuffers
(
const
Tegra
::
FramebufferConfig
*
framebuffer
)
override
;
/// Initialize the renderer
bool
Init
()
override
;
/// Shutdown the renderer
void
ShutDown
()
override
;
private:
std
::
optional
<
vk
::
DebugUtilsMessengerEXT
>
CreateDebugCallback
(
const
vk
::
DispatchLoaderDynamic
&
dldi
);
bool
PickDevices
(
const
vk
::
DispatchLoaderDynamic
&
dldi
);
void
Report
()
const
;
Core
::
System
&
system
;
vk
::
Instance
instance
;
vk
::
SurfaceKHR
surface
;
VKScreenInfo
screen_info
;
UniqueDebugUtilsMessengerEXT
debug_callback
;
std
::
unique_ptr
<
VKDevice
>
device
;
std
::
unique_ptr
<
VKSwapchain
>
swapchain
;
std
::
unique_ptr
<
VKMemoryManager
>
memory_manager
;
std
::
unique_ptr
<
VKResourceManager
>
resource_manager
;
std
::
unique_ptr
<
VKScheduler
>
scheduler
;
std
::
unique_ptr
<
VKBlitScreen
>
blit_screen
;
};
}
// namespace Vulkan
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment