summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Rodrigo Locatti2020-01-10 22:46:34 -0300
committerGravatar GitHub2020-01-10 22:46:34 -0300
commitb1138e5ea1d839abc8e936075067f04885745f7e (patch)
tree5a70952b8d01cbefab7c575f145a392c0ebbf8d2 /src
parentvk_compute_pass: Add compute passes to emulate missing Vulkan features (diff)
downloadyuzu-b1138e5ea1d839abc8e936075067f04885745f7e.tar.gz
yuzu-b1138e5ea1d839abc8e936075067f04885745f7e.tar.xz
yuzu-b1138e5ea1d839abc8e936075067f04885745f7e.zip
vk_compute_pass: Address feedback
Comment hardcoded SPIR-V modules.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_compute_pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.cpp b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
index 9f882a15e..7bdda3d79 100644
--- a/src/video_core/renderer_vulkan/vk_compute_pass.cpp
+++ b/src/video_core/renderer_vulkan/vk_compute_pass.cpp
@@ -22,6 +22,7 @@ namespace Vulkan {
22 22
23namespace { 23namespace {
24 24
25// Quad array SPIR-V module. Generated from the "shaders/" directory, read the instructions there.
25constexpr u8 quad_array[] = { 26constexpr u8 quad_array[] = {
26 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x54, 0x00, 0x00, 0x00, 27 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x54, 0x00, 0x00, 0x00,
27 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00, 28 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00,
@@ -113,6 +114,7 @@ constexpr u8 quad_array[] = {
113 0xf9, 0x00, 0x02, 0x00, 0x4c, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x02, 0x00, 0x4b, 0x00, 0x00, 0x00, 114 0xf9, 0x00, 0x02, 0x00, 0x4c, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x02, 0x00, 0x4b, 0x00, 0x00, 0x00,
114 0xfd, 0x00, 0x01, 0x00, 0x38, 0x00, 0x01, 0x00}; 115 0xfd, 0x00, 0x01, 0x00, 0x38, 0x00, 0x01, 0x00};
115 116
117// Uint8 SPIR-V module. Generated from the "shaders/" directory.
116constexpr u8 uint8_pass[] = { 118constexpr u8 uint8_pass[] = {
117 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x2f, 0x00, 0x00, 0x00, 119 0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x2f, 0x00, 0x00, 0x00,
118 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 120 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,