Просмотр исходного кода

vk_compute_pass: Address feedback

Comment hardcoded SPIR-V modules.
Rodrigo Locatti 6 лет назад
Родитель
Сommit
b1138e5ea1
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/video_core/renderer_vulkan/vk_compute_pass.cpp

+ 2 - 0
src/video_core/renderer_vulkan/vk_compute_pass.cpp

@@ -22,6 +22,7 @@ namespace Vulkan {
 
 namespace {
 
+// Quad array SPIR-V module. Generated from the "shaders/" directory, read the instructions there.
 constexpr u8 quad_array[] = {
     0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x54, 0x00, 0x00, 0x00,
     0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00,
@@ -113,6 +114,7 @@ constexpr u8 quad_array[] = {
     0xf9, 0x00, 0x02, 0x00, 0x4c, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x02, 0x00, 0x4b, 0x00, 0x00, 0x00,
     0xfd, 0x00, 0x01, 0x00, 0x38, 0x00, 0x01, 0x00};
 
+// Uint8 SPIR-V module. Generated from the "shaders/" directory.
 constexpr u8 uint8_pass[] = {
     0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x07, 0x00, 0x08, 0x00, 0x2f, 0x00, 0x00, 0x00,
     0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,